From ebefd8b7589c82d1a9af71ec7f738459cedc76a2 Mon Sep 17 00:00:00 2001 From: dannyrb Date: Thu, 25 Apr 2019 16:50:57 -0400 Subject: [PATCH] Add CircleCI test config --- .circleci/config.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5744ec4ed..836444cdc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -38,7 +38,18 @@ jobs: # Build & Test - run: yarn build - # - run: yarn test + # https://www.viget.com/articles/using-junit-on-circleci-2-0-with-jest-and-eslint/ + - run: + name: 'JavaScript Test Suite' + command: yarn test:ci + environment: + JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml' + + # Store result + - store_test_results: + path: reports/junit + - store_artifacts: + path: reports/junit # Persist :+1: - persist_to_workspace: