diff --git a/.circleci/config.yml b/.circleci/config.yml index 00a1f0fe0c281143f77ab19df3cca505d98817a8..7e004c39df6807d49cbb1e267133f9580760b980 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -109,17 +109,21 @@ jobs: path: dist integration: <<: *defaults + parallelism: 2 environment: JEST_JUNIT_OUTPUT_NAME: results.txt steps: - *restore_git_cache - checkout - *restore_npm_cache + - *restore_build_cache - run: name: Integration environment: JEST_JUNIT_OUTPUT_DIR: test-results/integration - command: npm run test:integration -- --reporters="default" --reporters="jest-junit" + command: | + export TESTFILES=$(circleci tests glob "test/integration/*.test.js" | circleci tests split --split-by=timings) + $(npm bin)/jest ${TESTFILES} --reporters="default" --reporters="jest-junit" - store_test_results: path: test-results