From 6c78f023716c051471071efb9a5202b840da0837 Mon Sep 17 00:00:00 2001 From: Kevin Grandon Date: Mon, 11 Mar 2019 16:30:32 -0700 Subject: [PATCH] Fix jest test chunking (#728) --- .buildkite/nodeTests | 2 +- get-test-files.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.buildkite/nodeTests b/.buildkite/nodeTests index 55bfbd6b..e2f7ad0d 100755 --- a/.buildkite/nodeTests +++ b/.buildkite/nodeTests @@ -1,3 +1,3 @@ #!/usr/bin/env bash -yarn test --testMatch=$(export JOB_COUNT=$BUILDKITE_PARALLEL_JOB_COUNT; export JOB_INDEX=$BUILDKITE_PARALLEL_JOB; node get-test-files.js) || exit 1 +yarn test --testPathPattern=$(export JOB_COUNT=$BUILDKITE_PARALLEL_JOB_COUNT; export JOB_INDEX=$BUILDKITE_PARALLEL_JOB; node get-test-files.js) || exit 1 bash <(curl -s https://codecov.io/bash) -f coverage/coverage-final.json -n node diff --git a/get-test-files.js b/get-test-files.js index 99514a24..8bb94620 100644 --- a/get-test-files.js +++ b/get-test-files.js @@ -43,4 +43,4 @@ const files = getFiles(); * a new glob pattern which will match all of the * selected files, exclusively. */ -process.stdout.write(files.map(str => '**/' + str).join('|')); +process.stdout.write(files.map(str => '.*/' + str).join('|'));