50 lines
1.4 KiB
JSON
50 lines
1.4 KiB
JSON
{
|
|
"testTimeout": 10000,
|
|
"rootDir": "../../",
|
|
"modulePaths": [
|
|
"."
|
|
],
|
|
"testEnvironment": "node",
|
|
"testMatch": [
|
|
"<rootDir>/test/unit/api-key/*.spec.ts",
|
|
"<rootDir>/test/unit/auth/*.spec.ts",
|
|
"<rootDir>/test/unit/config/*.spec.ts",
|
|
"<rootDir>/test/unit/database/*.spec.ts",
|
|
"<rootDir>/test/unit/debugger/*.spec.ts",
|
|
"<rootDir>/test/unit/helper/*.spec.ts",
|
|
"<rootDir>/test/unit/logger/*.spec.ts",
|
|
"<rootDir>/test/unit/message/*.spec.ts",
|
|
"<rootDir>/test/unit/pagination/*.spec.ts",
|
|
"<rootDir>/test/unit/setting/*.spec.ts"
|
|
],
|
|
"collectCoverage": true,
|
|
"coverageDirectory": "coverage",
|
|
"collectCoverageFrom": [
|
|
"./src/common/api-key/services/**",
|
|
"./src/common/auth/services/**",
|
|
"./src/common/database/services/**",
|
|
"./src/common/debugger/services/**",
|
|
"./src/common/helper/services/**",
|
|
"./src/common/logger/services/**",
|
|
"./src/common/message/services/**",
|
|
"./src/common/pagination/services/**",
|
|
"./src/common/setting/services/**"
|
|
],
|
|
"coverageThreshold": {
|
|
"global": {
|
|
"branches": 100,
|
|
"functions": 100,
|
|
"lines": 100,
|
|
"statements": 100
|
|
}
|
|
},
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"ts",
|
|
"json"
|
|
],
|
|
"transform": {
|
|
"^.+\\.(t|j)s$": "ts-jest"
|
|
}
|
|
}
|