Skip to content

Commit 859e636

Browse files
committed
Moar parallel
1 parent 7ccf9f5 commit 859e636

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.circleci/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,17 +109,21 @@ jobs:
109109
path: dist
110110
integration:
111111
<<: *defaults
112+
parallelism: 2
112113
environment:
113114
JEST_JUNIT_OUTPUT_NAME: results.txt
114115
steps:
115116
- *restore_git_cache
116117
- checkout
117118
- *restore_npm_cache
119+
- *restore_build_cache
118120
- run:
119121
name: Integration
120122
environment:
121123
JEST_JUNIT_OUTPUT_DIR: test-results/integration
122-
command: npm run test:integration -- --reporters="default" --reporters="jest-junit"
124+
command: |
125+
export TESTFILES=$(circleci tests glob "test/integration/*.test.js" | circleci tests split --split-by=timings)
126+
$(npm bin)/jest ${TESTFILES} --reporters="default" --reporters="jest-junit"
123127
- store_test_results:
124128
path: test-results
125129

0 commit comments

Comments
 (0)