oneuptime/CommonServer/jest.config.json
2023-11-21 14:33:05 +00:00

34 lines
811 B
JSON

{
"preset": "ts-jest",
"verbose": true,
"globals": {
"ts-jest": {
"tsconfig": "tsconfig.json",
"babelConfig": false
}
},
"moduleFileExtensions": ["ts", "js", "json"],
"transform": {
".(ts|tsx)": "ts-jest"
},
"testEnvironment": "node",
"collectCoverage": false,
"transformIgnorePatterns": [
"/node_modules/(?!Common).+\\.js$"
],
"moduleNameMapper": {
"axios": "axios/dist/node/axios.cjs"
},
"coverageReporters": ["text", "lcov"],
"testRegex": "./Tests/(.*).test.ts",
"collectCoverageFrom": ["./**/*.(tsx||ts)"],
"coverageThreshold": {
"global": {
"lines": 0,
"functions": 0,
"branches": 0,
"statements": 0
}
}
}