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('|'));