Skip to content

Commit 8644024

Browse files
committed
test: update jest default config
1 parent e144cb3 commit 8644024

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

jest.preset.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
const nxPreset = require('@nx/jest/preset').default;
22

3-
module.exports = { ...nxPreset };
3+
module.exports = { ...nxPreset, coverageReporters: ['json', 'lcov'] };

nx.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,16 @@
4141
"dependsOn": ["^build"],
4242
"inputs": ["production", "^production"]
4343
},
44-
"@nx/jest:jest": {
44+
"test": {
4545
"cache": true,
4646
"options": {
47-
"passWithNoTests": true
47+
"passWithNoTests": true,
48+
"collectCoverage": true
4849
},
4950
"configurations": {
5051
"ci": {
5152
"ci": true,
52-
"codeCoverage": true
53+
"collectCoverage": true
5354
}
5455
}
5556
},

0 commit comments

Comments
 (0)