Skip to content

Commit d14ae1e

Browse files
committed
🔧 add jest.config.json
add configuration for jest test coverage reports
1 parent a7cce79 commit d14ae1e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

jest.config.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"setupFiles": ["<rootDir>/src/tests/setupTests.js"],
3+
"testRegex": "/*.test.js$",
4+
"collectCoverage": true,
5+
"coverageReporters": ["lcov"],
6+
"coverageDirectory": "test-coverage",
7+
"coverageThreshold": {
8+
"global": {
9+
"branches": 0,
10+
"functions": 0,
11+
"lines": 0,
12+
"statements": 0
13+
}
14+
},
15+
"moduleDirectories": ["node_modules", "src"]
16+
}

0 commit comments

Comments
 (0)