mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
dfb7f2320c
The jest.config.json files in the Model, Probe, Common, Copilot, CommonUI, Ingestor, IsolatedVM, TestServer, and CommonServer directories have been updated. The "testPathIgnorePatterns" property has been added to each file, excluding the "node_modules" and "dist" directories from test path matching. This change improves test performance and ensures that unnecessary files are not included in the test coverage.
44 lines
868 B
JSON
44 lines
868 B
JSON
{
|
|
|
|
"preset": "ts-jest",
|
|
"testPathIgnorePatterns": [
|
|
"node_modules",
|
|
"dist"
|
|
],
|
|
"verbose": true,
|
|
"globals": {
|
|
"ts-jest": {
|
|
"tsconfig": "tsconfig.json",
|
|
"babelConfig": false
|
|
}
|
|
},
|
|
"moduleFileExtensions": [
|
|
"ts",
|
|
"js",
|
|
"json"
|
|
],
|
|
"transform": {
|
|
".(ts|tsx)": "ts-jest"
|
|
},
|
|
"testEnvironment": "node",
|
|
"collectCoverage": false,
|
|
"coverageReporters": [
|
|
"text",
|
|
"lcov"
|
|
],
|
|
"testRegex": "./Tests/(.*).test.ts",
|
|
"collectCoverageFrom": [
|
|
"./**/*.(tsx||ts)"
|
|
],
|
|
"moduleNameMapper": {
|
|
"axios": "axios/dist/node/axios.cjs"
|
|
},
|
|
"coverageThreshold": {
|
|
"global": {
|
|
"lines": 0,
|
|
"functions": 0,
|
|
"branches": 0,
|
|
"statements": 0
|
|
}
|
|
}
|
|
} |