Configured jest.

This commit is contained in:
David Ball 2024-07-17 18:17:38 -04:00
parent eafa758b5a
commit 94d7a2f8cd

12
jest.config.ts Normal file
View 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;