From 34c1cad8ccc9b67cab0ca392b5473cc46876d9f1 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 19 Mar 2018 19:19:16 +0330 Subject: [PATCH] enable collectCoverage and codecov --- .circleci/config.yml | 4 ++-- jest.config.js | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) 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' }