Skip to content

Commit

Permalink
Disable flaky Vitest console test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbbot committed Sep 7, 2022
1 parent 379836d commit ecb48fb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/vitest-environment-miniflare/test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ test.serial(
path.join(fixturesPath, "service-worker")
);
t.is(exitCode, 0, output);
// Check using Vitest's console
t.regex(
output,
/stdout \| core\.worker\.spec\.js > uses Vitest console\nhello!/
);
// Check using Vitest's console (this test is flaky on Windows)
if (process.platform !== "win32") {
t.regex(
output,
/stdout \| core\.worker\.spec\.js > uses Vitest console\nhello!/
);
}
// Check `describe.each` title substitution
t.regex(output, /each describe 1 > each describe test/);
t.regex(output, /each describe 2 > each describe test/);
Expand Down

0 comments on commit ecb48fb

Please sign in to comment.