From d09b5d6abbd577eba8d44c439c0130c83a60be9d Mon Sep 17 00:00:00 2001 From: npeter83 Date: Mon, 2 Nov 2026 01:17:39 +0100 Subject: [PATCH] fix(dev): vite stops watching what an e2e run writes On Windows a report file being rewritten answered the watcher with EBUSY, which took the dev server down, and each run reloaded every open page. --- frontend/vite.config.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index db44f90f..befc2451 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -56,6 +56,12 @@ const watchEntry = (): Plugin => ({ export default defineConfig({ plugins: [reactWithCompiler(), devOnlyGuard(), chunkGuard(), watchEntry()], - server: { port: 5173, proxy }, + server: { + port: 5173, + proxy, + // What an e2e run writes is no source. On Windows a file it is rewriting answers the watcher with + // EBUSY, which takes the whole dev server down; each run also reloaded every open page. + watch: { ignored: ["**/playwright-report/**", "**/test-results/**"] }, + }, build: { outDir: "dist", rollupOptions: { input: ["index.html", "watch.html"] } }, });