Skip to content

Commit ac53774

Browse files
committed
[test] Remove <index.ts> files from test coverage
These files will only contain simple startup code that is really hard to test and comes down to trusting express to start correctly. The startup will later be tested via integration tests.
1 parent 30e76c7 commit ac53774

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

jest.config.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = {
2121
collectCoverage: true,
2222

2323
// An array of glob patterns indicating a set of files for which coverage information should be collected
24-
collectCoverageFrom: ["src/**/*.ts", "!src/**/*.d.ts"],
24+
collectCoverageFrom: ["src/**/*.ts", "!src/**/*.d.ts", "!src/**/index.ts"],
2525

2626
// The directory where Jest should output its coverage files
2727
coverageDirectory: "coverage",
@@ -33,9 +33,7 @@ module.exports = {
3333
},
3434

3535
// An array of regexp pattern strings used to skip coverage collection
36-
// coveragePathIgnorePatterns: [
37-
// "/node_modules/"
38-
// ],
36+
coveragePathIgnorePatterns: ["/node_modules/"],
3937

4038
// A list of reporter names that Jest uses when writing coverage reports
4139
// coverageReporters: [

0 commit comments

Comments
 (0)