From d9e2756ae36e9e5434e96bf52fe8d3a5c2e6dfc4 Mon Sep 17 00:00:00 2001 From: Zainan Victor Zhou Date: Thu, 7 Jan 2021 17:40:13 -0800 Subject: [PATCH] test(circleci): add coverage to artifacts. --- .circleci/config.yml | 7 ++----- package.json | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0e8c88c..cab9362 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,11 +29,8 @@ jobs: path: reports/jest - store_artifacts: path: reports - - run: - name: Run integration test - command: yarn test:integration - environment: - JEST_JUNIT_OUTPUT: "reports/jest/integration/results.xml" + - store_artifacts: + path: coverage chromatic-deployment: docker: - image: circleci/node:12.19.1 diff --git a/package.json b/package.json index b4c1129..82f3e8a 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "start": "npm run dev", "test:integration": "jest --testPathIgnorePatterns=THIS_SHALL_NEVER_MATCH_ANYTHING --testPathPattern=integration --verbose", "test:full": "jest --testPathIgnorePatterns=THIS_SHALL_NEVER_MATCH_ANYTHING --verbose", - "test:report": "jest --ci", + "test:report": "jest --testPathIgnorePatterns=THIS_SHALL_NEVER_MATCH_ANYTHING --verbose --coverage --ci", "test": "jest --verbose --bail", "chromatic": "chromatic --project-token=${CHROMATIC_PROJECT_TOKEN}" },