Skip to content

Commit 7263942

Browse files
stormslowlyCopilot
andauthored
chore: skip flaky test (#11827)
* chore: skip window native watcher flaky test * chore: skip flaky e2e test * Apply suggestion from @Copilot Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent 61dfbf4 commit 7263942

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

tests/e2e/cases/lazy-compilation/persistent-cache/index.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { expect, test } from "@/fixtures";
22

3-
test("should load success", async ({ page, rspack }) => {
3+
// Ref: https://github.com/web-infra-dev/rspack/issues/11829
4+
test.skip("should load success", async ({ page, rspack }) => {
45
await page.getByText("Click me").click();
56
let component_count = await page.getByText("Component").count();
67
expect(component_count).toBe(1);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = function (config) {
2+
let nativeWatcherEnabled = config.experiments?.nativeWatcher === true;
3+
4+
// Ref: https://github.com/web-infra-dev/rspack/issues/11828
5+
if (process.platform === "win32" && nativeWatcherEnabled) {
6+
return false;
7+
}
8+
return true;
9+
}

0 commit comments

Comments
 (0)