Tweaking Jest config

This commit is contained in:
Jeff Avallone 2018-02-15 17:22:25 -05:00
parent 895827e881
commit eb384831fe

View File

@ -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": [