Manually defined coverage reporters on commands, to nto break integration with webstorm

This commit is contained in:
Alejandro Celaya 2018-08-23 09:34:26 +02:00
parent a5865e6cec
commit 5fcb5735d6
2 changed files with 4 additions and 8 deletions

View file

@ -13,7 +13,7 @@ install:
script:
# - yarn inspect
- yarn test --coverage
- yarn test:ci
- yarn build # Make sure the app can be built without errors
after_script:

View file

@ -6,7 +6,9 @@
"scripts": {
"start": "node scripts/start.js",
"build": "node scripts/build.js",
"test": "node scripts/test.js --env=jsdom --colors"
"test": "node scripts/test.js --env=jsdom --colors",
"test:ci": "yarn test --coverage --coverageReporters=text --coverageReporters=text-summary --coverageReporters=clover",
"test:pretty": "yarn test --coverage --coverageReporters=text --coverageReporters=text-summary --coverageReporters=html"
},
"dependencies": {
"@fortawesome/fontawesome": "^1.1.8",
@ -86,12 +88,6 @@
"whatwg-fetch": "2.0.3"
},
"jest": {
"coverageReporters": [
"text",
"text-summary",
"clover",
"html"
],
"coverageDirectory": "<rootDir>/coverage",
"collectCoverageFrom": [
"src/**/*.{js,jsx,mjs}"