Skip to content

Commit ece814f

Browse files
setchyadufr
authored andcommitted
build(jest): enable coverage on runs (gitify-app#881)
1 parent 88f0210 commit ece814f

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

jest.config.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
const config = {
2-
"preset": "ts-jest/presets/js-with-ts",
3-
"setupFiles": [
4-
"<rootDir>/src/__helpers__/setupEnvVars.js"
5-
],
6-
"testEnvironment": "jsdom",
7-
"coverageThreshold": {
8-
"global": {
9-
"lines": 90
10-
}
2+
preset: 'ts-jest/presets/js-with-ts',
3+
setupFiles: ['<rootDir>/src/__helpers__/setupEnvVars.js'],
4+
testEnvironment: 'jsdom',
5+
collectCoverage: true,
6+
coverageThreshold: {
7+
global: {
8+
lines: 90,
9+
},
1110
},
12-
"moduleNameMapper": {
11+
moduleNameMapper: {
1312
// Force CommonJS build for http adapter to be available.
1413
// via https://github.com/axios/axios/issues/5101#issuecomment-1276572468
1514
'^axios$': require.resolve('axios'),
1615
},
17-
}
16+
};
1817

1918
module.exports = config;

0 commit comments

Comments
 (0)