diff --git a/.circleci/config.yml b/.circleci/config.yml index 3a487e4a24..314597f729 100755 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -62,7 +62,7 @@ jobs: at: ~/project - run: name: Test - command: yarn test:unit + command: yarn test:unit && yarn coverage environment: - NODE_ENV: "test" @@ -73,7 +73,7 @@ jobs: at: ~/project - run: name: Test (e2e) - command: yarn test:e2e + command: yarn test:e2e && yarn coverage environment: - NODE_ENV: "test" diff --git a/jest.config.js b/jest.config.js index d434b79a41..e7fa0205a2 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,5 +1,6 @@ module.exports = { - 'testEnvironment': 'node', - 'coverageDirectory': './coverage/', - 'setupTestFrameworkScriptFile': './test/utils/setup' + testEnvironment: 'node', + coverageDirectory: './coverage/', + collectCoverage: true, + setupTestFrameworkScriptFile: './test/utils/setup' }