From 05ae290f443d4d0edec5eec14ae0533db17b2a68 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Thu, 29 Jan 2026 10:06:55 +0000 Subject: [PATCH] Initial commit: Add package.json, README, LICENSE and config files --- jest.config.js | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 jest.config.js diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..f35eb3a --- /dev/null +++ b/jest.config.js @@ -0,0 +1,38 @@ +/** @type {import('ts-jest').JestConfigWithTsJest} */ +export default { + preset: 'ts-jest/presets/default-esm', + testEnvironment: 'node', + roots: ['/test', '/src'], + testMatch: ['**/*.test.ts'], + collectCoverageFrom: [ + 'src/**/*.ts', + '!src/**/*.d.ts', + ], + coverageDirectory: 'coverage', + coverageReporters: ['text', 'lcov', 'html'], + moduleFileExtensions: ['ts', 'js', 'json'], + transform: { + '^.+\\.ts$': ['ts-jest', { + tsconfig: { + target: 'ES2022', + module: 'NodeNext', + moduleResolution: 'NodeNext', + lib: ['ES2022'], + strict: true, + esModuleInterop: true, + skipLibCheck: true, + forceConsistentCasingInFileNames: true, + declaration: true, + declarationMap: true, + sourceMap: true, + resolveJsonModule: true, + allowSyntheticDefaultImports: true, + isolatedModules: true + }, + useESM: true, + }], + }, + moduleNameMapper: { + '^(\\.{1,2}/.*)\\.js$': '$1', + }, +}; \ No newline at end of file