From 79d97b2be26715cf6a3db01c98fc7bf72ce42c09 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 19 Mar 2018 19:27:36 +0330 Subject: [PATCH] fix(ci): report coverage only for unit tests jest + puppeteer: https://circleci.com/gh/nuxt/nuxt.js/581 --- jest.config.js | 1 - package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/jest.config.js b/jest.config.js index e7fa0205a2..22d6ef094a 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,6 +1,5 @@ module.exports = { testEnvironment: 'node', coverageDirectory: './coverage/', - collectCoverage: true, setupTestFrameworkScriptFile: './test/utils/setup' } diff --git a/package.json b/package.json index 08621309be..0116b8db0d 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "scripts": { "test": "npm run build-fixtures && npm run test:unit", "build-fixtures": "node ./scripts/build-fixtures", - "test:unit": "jest --maxWorkers=4 test/unit", + "test:unit": "jest --maxWorkers=4 --coverage test/unit", "test:e2e": "jest --maxWorkers=1 test/e2e", "coverage": "codecov", "lint": "eslint --ext .js,.mjs,.vue bin/* build/ lib/ test/ examples/",