From 2451d4b6d6e217d80219a01978661c128ce5f5f0 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Wed, 28 Feb 2018 14:00:56 -0700 Subject: [PATCH] adjusted client tests --- .circleci/config.yml | 5 +++-- jest.config.js | 2 ++ package.json | 2 +- yarn.lock | 8 +++++--- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 944247997..25623bd48 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -105,9 +105,10 @@ jobs: command: mkdir -p /tmp/circleci-test-results - run: name: Run the client unit tests - command: yarn test:client --ci --testResultsProcessor="./node_modules/jest-junit-reporter + command: yarn test:client --ci environment: - TEST_REPORT_PATH: /tmp/circleci-test-results/jest/test-results.xml + JEST_JUNIT_OUTPUT: /tmp/circleci-test-results/jest/test-results.xml + JEST_REPORTER: jest-junit - run: name: Run the server unit tests command: yarn test:server diff --git a/jest.config.js b/jest.config.js index 654b72cd0..7150d1066 100644 --- a/jest.config.js +++ b/jest.config.js @@ -27,6 +27,8 @@ module.exports = { '\\.ya?ml$': '/test/client/yamlTransformer.js', }, + testResultsProcessor: process.env.JEST_REPORTER, + moduleNameMapper: { '^plugin-api\\/(.*)$': '/plugin-api/$1', '^plugins\\/(.*)$': '/plugins/$1', diff --git a/package.json b/package.json index b443d540a..e54ad11d4 100644 --- a/package.json +++ b/package.json @@ -216,7 +216,7 @@ "identity-obj-proxy": "^3.0.0", "ip": "^1.1.5", "jest": "^21.2.1", - "jest-junit-reporter": "^1.1.0", + "jest-junit": "^3.6.0", "lint-staged": "^7.0.0", "mocha": "^3.1.2", "mocha-junit-reporter": "^1.12.1", diff --git a/yarn.lock b/yarn.lock index 947eb7f80..5153185a3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5399,10 +5399,12 @@ jest-jasmine2@^22.4.2: jest-util "^22.4.1" source-map-support "^0.5.0" -jest-junit-reporter@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/jest-junit-reporter/-/jest-junit-reporter-1.1.0.tgz#88d6006ec13f82df40c47882c8640989cdcb1434" +jest-junit@^3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-3.6.0.tgz#f4c4358e5286364a4324dc14abddd526aadfbd38" dependencies: + mkdirp "^0.5.1" + strip-ansi "^4.0.0" xml "^1.0.1" jest-matcher-utils@^21.2.1: