Configured jest.
This commit is contained in:
parent
eafa758b5a
commit
94d7a2f8cd
12
jest.config.ts
Normal file
12
jest.config.ts
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
// jest.config.ts
|
||||||
|
import { createDefaultPreset, type JestConfigWithTsJest } from 'ts-jest';
|
||||||
|
|
||||||
|
const jestConfig: JestConfigWithTsJest = {
|
||||||
|
testEnvironment: "node",
|
||||||
|
preset: 'ts-jest/presets/js-with-ts-esm',
|
||||||
|
transform: {
|
||||||
|
"^.+.tsx?$": ["ts-jest",{}],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default jestConfig;
|
Loading…
Reference in New Issue
Block a user