- attempt to fix esm tests

This commit is contained in:
Mike Penz
2024-12-14 12:25:29 +01:00
parent 30758be82d
commit fe815a18f2
7 changed files with 23 additions and 38 deletions
+6 -6
View File
@@ -1,12 +1,12 @@
// jest.config.js
import { createJsWithTsEsmPreset } from "ts-jest";
export default {
clearMocks: true,
moduleFileExtensions: ["js", "ts"],
moduleDirectories: ["src", "node_modules"],
testEnvironment: "node",
testMatch: ["**/*.test.ts"],
testRunner: "jest-circus/runner",
transform: {
'^.+\\.ts$': 'ts-jest'
moduleNameMapper: {
"(.+)\\.js": "$1",
},
verbose: true
};
...createJsWithTsEsmPreset(),
}