Skip to content

Commit 9b8fead

Browse files
committed
fix: exclude out of scope tests
1 parent 5515a13 commit 9b8fead

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

.circleci/config.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,17 @@ windows_big: &windows_big
4141
name: win/server-2022
4242
shell: bash.exe
4343
size: large
44-
# we've pinned the version because without it, it uses "current" (at the time of writing, "2023.06.1"),
45-
# which has a broken Docker installation. See https://discuss.circleci.com/t/build-failures-when-running-docker-on-junes-windows-executor/48605
46-
# TODO: check if it works again with the next release and unpin the version.
47-
version: "2023.05.1"
44+
parameters:
45+
node_version:
46+
type: string
47+
default: ""
48+
working_directory: ~/snyk-docker-plug
49+
50+
windows_small: &windows_small
51+
executor:
52+
name: win/server-2022
53+
shell: bash.exe
54+
size: small
4855
parameters:
4956
node_version:
5057
type: string
@@ -143,13 +150,13 @@ jobs:
143150
- run:
144151
name: Run tests in parallel
145152
command: |
146-
TEST=$(circleci tests glob "test/**/*.spec.ts" | circleci tests split --split-by=timings)
153+
TEST=$(npx jest --listTests | circleci tests split --split-by=timings)
147154
npm run test-jest -- $TEST >> test-logs.txt 2>&1
148155
- store_artifacts:
149156
path: test-logs.txt
150157
destination: test-logs
151158
test_jest_windows_with_docker:
152-
<<: *windows_big
159+
<<: *windows_small
153160
parallelism: 4 # Run tests across 4 containers
154161
steps:
155162
- checkout
@@ -161,7 +168,7 @@ jobs:
161168
- run:
162169
name: Run windows tests in parallel
163170
command: |
164-
TEST=$(circleci tests glob "test/**/*.spec.ts" | circleci tests split --split-by=timings)
171+
TEST=$(npx jest --listTests --config test/windows/jest.config.js | circleci tests split --split-by=timings)
165172
npm run test-jest-windows -- $TEST
166173
no_output_timeout: 20m
167174
test_jest_windows_no_docker:

0 commit comments

Comments
 (0)