no-flake-masking
Keep test retries disabled and explicit test timeouts within framework defaults.
Why
Organization policy keeps each test attempt visible and uses the framework's default per-test time budget. Diagnose synchronization and setup costs before changing either contract.
Fix
Disable retries and keep per-test timeouts within the documented framework defaults. Review required long-running integration contracts and preserve their justified exact-rule exceptions.
Examples
import { it } from "vitest";it("syncs", { retry: 2 }, async () => { await sync.done; expect(sync.state).toBe("idle");});import { it } from "vitest";it("syncs", async () => { await sync.done; expect(sync.state).toBe("idle");});import { it } from "vitest";it("syncs", async () => { await sync.done;}, 30_000);import { it } from "vitest";it("syncs", async () => { await sync.done;}, 1000);import { defineConfig } from "@playwright/test";export default defineConfig({ retries: process.env.CI ? 2 : 0 });import { defineConfig } from "@playwright/test";export default defineConfig({ retries: 0 });