Skip to content

Commit 99174da

Browse files
committed
Jest setup. 2 Coverage reports: 1 for unit tests, 1 for e2e tests, and 1 final merged with both reports.
1 parent 69c69fc commit 99174da

File tree

3 files changed

+7798
-2846
lines changed

3 files changed

+7798
-2846
lines changed

jest.config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
verbose: true,
3+
testEnvironment: 'node',
4+
collectCoverage: true,
5+
collectCoverageFrom: [
6+
'**/*.js',
7+
'!jest.config.js',
8+
'!**/data/**',
9+
'!**/node_modules/**',
10+
'!**/.history/**',
11+
'!**/test/**',
12+
'!**/coverage/**',
13+
'!**/tmp/**'
14+
],
15+
coverageDirectory: 'coverage/unit',
16+
coverageReporters: ['json', 'text', 'lcov'],
17+
testPathIgnorePatterns: ['.history/']
18+
}

0 commit comments

Comments
 (0)