mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 23:30:10 +00:00
37 lines
1.1 KiB
JSON
37 lines
1.1 KiB
JSON
{
|
|
"preset": "ts-jest",
|
|
"verbose": true,
|
|
"globals": {
|
|
"ts-jest": {
|
|
"tsconfig": "tsconfig.json",
|
|
"babelConfig": false
|
|
}
|
|
},
|
|
"moduleFileExtensions": ["ts", "js", "json", "tsx","css"],
|
|
"transform": {
|
|
".(ts|tsx)": "ts-jest"
|
|
},
|
|
"transformIgnorePatterns": [
|
|
"/node_modules/(?!Common).+\\.js$"
|
|
],
|
|
"setupFilesAfterEnv": ["<rootDir>/setupTest.js"],
|
|
"testEnvironment": "jsdom",
|
|
"collectCoverage": false,
|
|
"coverageReporters": ["text", "lcov"],
|
|
"testRegex": "./src/Tests/(.*).test.(tsx||ts)",
|
|
"collectCoverageFrom": ["./**/*.(tsx||ts)"],
|
|
"coverageThreshold": {
|
|
"global": {
|
|
"lines": 0,
|
|
"functions": 0,
|
|
"branches": 0,
|
|
"statements": 0
|
|
}
|
|
},
|
|
"moduleNameMapper": {
|
|
"\\.(css|less|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/src/Tests/Mocks/FileMock.ts",
|
|
"uuid":"<rootDir>/node_modules/jest-runtime/build/index.js",
|
|
"react-markdown": "<rootDir>/node_modules/react-markdown/react-markdown.min.js"
|
|
}
|
|
}
|