Stop Vite from watching test artifacts

A Playwright or build run in the same checkout wrote playwright-report/
test-results/dist, and the dev server's watcher force-reloaded any live
app window on every write — killing in-flight Tauri IPC ("Couldn't find
callback id") and making interactions appear to crash mid-flow.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
klopez4212
2026-07-07 07:46:14 +01:00
co-authored by Claude Fable 5
parent f19c35e025
commit 3c23b8e62c
+10 -1
View File
@@ -47,7 +47,16 @@ export default defineConfig(async () => ({
: undefined,
watch: {
// 3. tell Vite to ignore watching `src-tauri`
ignored: ["**/src-tauri/**"],
ignored: [
"**/src-tauri/**",
// Test artifacts: a Playwright/build run in the same checkout must
// not force-reload a live dev app window (in-flight Tauri IPC dies
// with "Couldn't find callback id" and interactions appear to
// crash mid-flow).
"**/playwright-report/**",
"**/test-results/**",
"**/dist/**",
],
},
},
}));