Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit ecb48fb

Browse files
committed
Disable flaky Vitest console test on Windows
1 parent 379836d commit ecb48fb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

packages/vitest-environment-miniflare/test/index.spec.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,13 @@ test.serial(
6565
path.join(fixturesPath, "service-worker")
6666
);
6767
t.is(exitCode, 0, output);
68-
// Check using Vitest's console
69-
t.regex(
70-
output,
71-
/stdout \| core\.worker\.spec\.js > uses Vitest console\nhello!/
72-
);
68+
// Check using Vitest's console (this test is flaky on Windows)
69+
if (process.platform !== "win32") {
70+
t.regex(
71+
output,
72+
/stdout \| core\.worker\.spec\.js > uses Vitest console\nhello!/
73+
);
74+
}
7375
// Check `describe.each` title substitution
7476
t.regex(output, /each describe 1 > each describe test/);
7577
t.regex(output, /each describe 2 > each describe test/);

0 commit comments

Comments
 (0)