mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 23:30:10 +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.
33 lines
725 B
JSON
33 lines
725 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)"],
|
|
"coverageThreshold": {
|
|
"global": {
|
|
"lines": 0,
|
|
"functions": 0,
|
|
"branches": 0,
|
|
"statements": 0
|
|
}
|
|
}
|
|
}
|