Skip to content

Commit db92b17

Browse files
authored
chore: Slight update to CircleCI config (#36823)
1 parent 8051184 commit db92b17

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.circleci/config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
orbs:
22
win: circleci/windows@2.4.0
3-
slack: circleci/slack@3.4.1
43

54
executors:
65
node:
@@ -99,6 +98,7 @@ aliases:
9998
GENERATE_JEST_REPORT: "true"
10099
JEST_JUNIT_OUTPUT_DIR: ./test-results/jest-node/
101100
JEST_JUNIT_OUTPUT_NAME: results.xml
101+
JEST_JUNIT_REPORT_TEST_SUITE_ERRORS: "true"
102102
- store_test_results:
103103
path: ./test-results/jest-node/
104104

@@ -522,14 +522,15 @@ jobs:
522522
yarn
523523
- run:
524524
name: Run tests
525-
command: yarn jest --ci --runInBand ((yarn jest --listTests) | Foreach-Object {$_ -replace '.*\\packages', 'packages'} | Foreach-Object {$_ -replace '\\', '/'} | circleci tests split --split-by=timings)
525+
command: yarn jest --ci --runInBand ((yarn jest --listTests) | Foreach-Object {$_ -replace '.*\\packages', 'packages'} | Foreach-Object {$_ -replace '\\', '/'} | circleci tests split)
526526
no_output_timeout: 15m
527527
environment:
528528
NODE_OPTIONS: --max-old-space-size=2048
529529
GENERATE_JEST_REPORT: "true"
530530
COMPILER_OPTIONS: GATSBY_MAJOR=5
531531
JEST_JUNIT_OUTPUT_DIR: ./test-results/jest-node/
532532
JEST_JUNIT_OUTPUT_NAME: results.xml
533+
JEST_JUNIT_REPORT_TEST_SUITE_ERRORS: "true"
533534
- store_test_results:
534535
path: ./test-results/jest-node/
535536

jest.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const ignoreDirs = [`<rootDir>/packages/gatsby-dev-cli/verdaccio`].concat(
1818
)
1919

2020
const coverageDirs = pkgs.map(p => path.join(p, `src/**/*.js`))
21-
const useCoverage = !!process.env.GENERATE_JEST_REPORT
21+
const useJestUnit = !!process.env.GENERATE_JEST_REPORT
2222

2323
// list to add ESM to ignore
2424
const esModules = [
@@ -145,9 +145,9 @@ module.exports = {
145145
collectCoverageFrom: coverageDirs,
146146
reporters: process.env.CI
147147
? [[`jest-silent-reporter`, { useDots: true, showPaths: true }]].concat(
148-
useCoverage ? `jest-junit` : []
148+
useJestUnit ? `jest-junit` : []
149149
)
150-
: [`default`].concat(useCoverage ? `jest-junit` : []),
150+
: [`default`].concat(useJestUnit ? `jest-junit` : []),
151151
moduleFileExtensions: [`js`, `jsx`, `ts`, `tsx`, `json`],
152152
setupFiles: [`<rootDir>/.jestSetup.js`],
153153
setupFilesAfterEnv: [`jest-extended`],

0 commit comments

Comments
 (0)