coverage
This commit is contained in:
parent
9255f14c42
commit
0085939bbb
1 changed files with 9 additions and 2 deletions
|
|
@ -19,8 +19,15 @@ export default {
|
|||
__dirname: path.dirname(fileURLToPath(import.meta.url)),
|
||||
__filename: path.resolve(fileURLToPath(import.meta.url)),
|
||||
},
|
||||
|
||||
|
||||
globalSetup: "<rootDir>/jest.global-setup.ts",
|
||||
setupFilesAfterEnv: ["<rootDir>/jest.setup-after-env.ts"],
|
||||
maxWorkers: 1 // equivalent to CLI --runInBand
|
||||
maxWorkers: 1, // equivalent to CLI --runInBand
|
||||
// collectCoverage: true,
|
||||
collectCoverageFrom: [
|
||||
"src/**/*.{js,ts}", // Adjust this pattern to match files you want coverage for
|
||||
"!**/node_modules/**", // Exclude node_modules
|
||||
"!**/vendor/**", // Exclude any vendor directories if necessary
|
||||
],
|
||||
// other Jest configuration...
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue