mirror of
https://github.com/textcortex/claude-code-sandbox.git
synced 2025-07-07 13:25:10 +00:00
36 lines
853 B
JavaScript
36 lines
853 B
JavaScript
module.exports = {
|
|
preset: "ts-jest",
|
|
testEnvironment: "node",
|
|
roots: ["<rootDir>/test"],
|
|
testMatch: [
|
|
"**/test/**/*.test.ts",
|
|
"**/test/**/*.test.js",
|
|
"**/test/**/*.spec.ts",
|
|
"**/test/**/*.spec.js",
|
|
],
|
|
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
|
|
transform: {
|
|
"^.+\\.tsx?$": "ts-jest",
|
|
"^.+\\.jsx?$": "babel-jest",
|
|
},
|
|
collectCoverageFrom: [
|
|
"src/**/*.{ts,tsx}",
|
|
"!src/**/*.d.ts",
|
|
"!src/**/*.test.{ts,tsx}",
|
|
"!src/**/*.spec.{ts,tsx}",
|
|
],
|
|
coverageDirectory: "<rootDir>/coverage",
|
|
coverageReporters: ["text", "lcov", "html"],
|
|
testPathIgnorePatterns: ["/node_modules/", "/dist/"],
|
|
moduleNameMapper: {
|
|
"^@/(.*)$": "<rootDir>/src/$1",
|
|
},
|
|
globals: {
|
|
"ts-jest": {
|
|
tsconfig: {
|
|
esModuleInterop: true,
|
|
allowJs: true,
|
|
},
|
|
},
|
|
},
|
|
};
|