jest.config.json
{
"clearMocks": true,
"collectCoverageFrom": [
"**/*.ts",
"!**/*.d.ts",
"!**/node_modules/**"
],
"coverageReporters": [
"lcov", "text", "text-summary"
],
"coverageThreshold": {
"global": {
"branches": 10,
"functions": 25,
"lines": 25,
"statements": 25
}
},
"moduleFileExtensions": [
"js",
"ts"
],
"testEnvironment": "node",
"testMatch": [
"**/*.spec.ts"
],
"testRunner": "jest-circus/runner",
"transform": {
"^.+\\.ts$": "ts-jest"
},
"verbose": true
}