Updated tests config excluding config files form code coverage

This commit is contained in:
Alejandro Celaya 2018-12-18 20:24:18 +01:00
parent eec79043cc
commit cd11dd9848

View file

@ -1,9 +1,11 @@
module.exports = { module.exports = {
coverageDirectory: '<rootDir>/coverage', coverageDirectory: '<rootDir>/coverage',
collectCoverageFrom: [ collectCoverageFrom: [
'src/**/*.{js,jsx,mjs}', 'src/**/*.js',
'!src/registerServiceWorker.js', '!src/registerServiceWorker.js',
'!src/index.js', '!src/index.js',
'!src/**/provideServices.js',
'!src/container/*.js',
], ],
setupFiles: [ setupFiles: [
'<rootDir>/config/polyfills.js', '<rootDir>/config/polyfills.js',