mirror of
https://github.com/farcasterxyz/hub-monorepo.git
synced 2026-04-18 03:00:22 -04:00
17 lines
386 B
TypeScript
17 lines
386 B
TypeScript
import type { Config } from 'jest';
|
|
|
|
const jestConfig: Config = {
|
|
testEnvironment: 'node',
|
|
rootDir: 'src',
|
|
extensionsToTreatAsEsm: ['.ts'],
|
|
/**
|
|
* For high performance with minimal configuration transform with TS with swc.
|
|
* @see https://github.com/farcasterxyz/hubble/issues/314
|
|
*/
|
|
transform: {
|
|
'^.+\\.(t|j)sx?$': '@swc/jest',
|
|
},
|
|
};
|
|
|
|
export default jestConfig;
|