Skip to content

Commit

Permalink
chore(jest/circleci): setup test report for units (gatsbyjs#23851)
Browse files Browse the repository at this point in the history
Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
  • Loading branch information
Slashgear and pieh committed May 8, 2020
1 parent a59c441 commit 299ae64
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .circleci/config.yml
Expand Up @@ -66,7 +66,13 @@ aliases:
- run: ./scripts/assert-changed-files.sh "packages/*|.circleci/*"
- <<: *attach_to_bootstrap
- run: yarn list react
- run: node --max-old-space-size=2048 ./node_modules/.bin/jest -w 1 --ci
- run:
command: node --max-old-space-size=2048 ./node_modules/.bin/jest -w 1 --ci --reporters=jest-junit
environment:
JEST_JUNIT_OUTPUT_DIR: ./test-results/jest-node/
JEST_JUNIT_OUTPUT_NAME: results.xml
- store_test_results:
path: ./test-results/jest-node/

e2e-test-workflow: &e2e-test-workflow
filters:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -52,7 +52,7 @@
"jest": "^24.9.0",
"jest-cli": "^24.9.0",
"jest-environment-jsdom-fourteen": "^0.1.0",
"jest-junit": "^6.4.0",
"jest-junit": "^10.0.0",
"jest-serializer-path": "^0.1.15",
"jest-silent-reporter": "^0.2.1",
"joi": "^14.3.1",
Expand Down
13 changes: 12 additions & 1 deletion yarn.lock
Expand Up @@ -14477,6 +14477,17 @@ jest-jasmine2@^24.9.0:
pretty-format "^24.9.0"
throat "^4.0.0"

jest-junit@^10.0.0:
version "10.0.0"
resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-10.0.0.tgz#c94b91c24920a327c9d2a075e897b2dba4af494b"
integrity sha512-dbOVRyxHprdSpwSAR9/YshLwmnwf+RSl5hf0kCGlhAcEeZY9aRqo4oNmaT0tLC16Zy9D0zekDjWkjHGjXlglaQ==
dependencies:
jest-validate "^24.9.0"
mkdirp "^0.5.1"
strip-ansi "^5.2.0"
uuid "^3.3.3"
xml "^1.0.1"

jest-junit@^6.4.0:
version "6.4.0"
resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-6.4.0.tgz#23e15c979fa6338afde46f2d2ac2a6b7e8cf0d9e"
Expand Down Expand Up @@ -25036,7 +25047,7 @@ utils-merge@1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713"

uuid@3.4.0, uuid@^3.4.0:
uuid@3.4.0, uuid@^3.3.3, uuid@^3.4.0:
version "3.4.0"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
Expand Down

0 comments on commit 299ae64

Please sign in to comment.