diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..05aca2f --- /dev/null +++ b/jest.config.js @@ -0,0 +1,17 @@ +module.exports = { + preset: 'ts-jest', + testEnvironment: 'node', + roots: ['/test'], + testMatch: ['**/*.test.ts'], + moduleFileExtensions: ['ts', 'js', 'json'], + collectCoverageFrom: ['src/**/*.ts'], + coverageDirectory: 'coverage', + coverageReporters: ['text', 'lcov'], + verbose: true, + globals: { + 'ts-jest': { + isolatedModules: true, + useESM: false + } + } +};