mirror of
https://github.com/block/buzz.git
synced 2026-11-02 15:31:27 +00:00
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:
@@ -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/**",
|
||||
],
|
||||
},
|
||||
},
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user