Skip to content

Commit 6e923b0

Browse files
committed
fix: improve test time
1 parent e6410b5 commit 6e923b0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.circleci/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ jobs:
139139
- setup_remote_docker
140140
- attach_workspace:
141141
at: ~/snyk-docker-plugin
142-
- run: npm run test-jest > test-logs.txt 2>&1
142+
- run:
143+
name: Run tests in parallel
144+
command: |
145+
TEST=$(circleci tests glob "test/**/*.spec.ts" | circleci tests split --split-by=timings)
146+
npm run test-jest -- $TEST >> test-logs.txt 2>&1
143147
- store_artifacts:
144148
path: test-logs.txt
145149
destination: test-logs

0 commit comments

Comments
 (0)