From 94d7a2f8cd135606c13fded3545516d3f28ec853 Mon Sep 17 00:00:00 2001 From: David Ball Date: Wed, 17 Jul 2024 18:17:38 -0400 Subject: [PATCH] Configured jest. --- jest.config.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 jest.config.ts diff --git a/jest.config.ts b/jest.config.ts new file mode 100644 index 0000000..d511a13 --- /dev/null +++ b/jest.config.ts @@ -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; \ No newline at end of file