Skip to content

Commit 52c4ce7

Browse files
committed
Enable unit test coverage reports
1 parent 9619218 commit 52c4ce7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

jest.config.mjs

+5-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
clearMocks: true,
1515

1616
// Indicates whether the coverage information should be collected while executing the test
17-
collectCoverage: false,
17+
collectCoverage: true,
1818

1919
// An array of glob patterns indicating a set of files for which coverage information should be collected
2020
// collectCoverageFrom: undefined,
@@ -23,9 +23,10 @@ export default {
2323
coverageDirectory: "coverage",
2424

2525
// An array of regexp pattern strings used to skip coverage collection
26-
// coveragePathIgnorePatterns: [
27-
// "\\\\node_modules\\\\"
28-
// ],
26+
coveragePathIgnorePatterns: [
27+
"node_modules",
28+
"tests",
29+
],
2930

3031
// Indicates which provider should be used to instrument code for coverage
3132
coverageProvider: "v8",

0 commit comments

Comments
 (0)