Tweaking Jest config
This commit is contained in:
parent
895827e881
commit
eb384831fe
@ -28,6 +28,7 @@
|
|||||||
"not ie < 11"
|
"not ie < 11"
|
||||||
],
|
],
|
||||||
"jest": {
|
"jest": {
|
||||||
|
"clearMocks": true,
|
||||||
"setupTestFrameworkScriptFile": "<rootDir>/src/setup-jest.js",
|
"setupTestFrameworkScriptFile": "<rootDir>/src/setup-jest.js",
|
||||||
"snapshotSerializers": [
|
"snapshotSerializers": [
|
||||||
"enzyme-to-json/serializer"
|
"enzyme-to-json/serializer"
|
||||||
@ -42,7 +43,11 @@
|
|||||||
},
|
},
|
||||||
"collectCoverageFrom": [
|
"collectCoverageFrom": [
|
||||||
"src/**/*.js",
|
"src/**/*.js",
|
||||||
"!src/pages/**"
|
"!src/prerender.js",
|
||||||
|
"!src/service-worker.js",
|
||||||
|
"!src/setup-jest.js",
|
||||||
|
"!src/pages/**/config.js",
|
||||||
|
"!src/pages/**/browser.js"
|
||||||
],
|
],
|
||||||
"coverageDirectory": "<rootDir>/coverage",
|
"coverageDirectory": "<rootDir>/coverage",
|
||||||
"coverageReporters": [
|
"coverageReporters": [
|
||||||
|
Loading…
Reference in New Issue
Block a user