Ignoring files For testing
Ignoring Specific files for Test Suites
Ignoring Specific files for Test Suites
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
/* add or remove file here */
"coveragePathIgnorePatterns" : [
"<rootDir>/database_init.ts",
"<rootDir>/main.ts"
],
/* add or remove file here */
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}Last updated