From 5fcb5735d63d84f30eb59df11100a93c57887ebe Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Thu, 23 Aug 2018 09:34:26 +0200 Subject: [PATCH] Manually defined coverage reporters on commands, to nto break integration with webstorm --- .travis.yml | 2 +- package.json | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5fb72bc5..e67f3fd7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/package.json b/package.json index a36e97c1..e2f3d2bb 100644 --- a/package.json +++ b/package.json @@ -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": "/coverage", "collectCoverageFrom": [ "src/**/*.{js,jsx,mjs}"