Tests: stabilize file watchers

This commit is contained in:
Onur authored and Peter Steinberger committed 2026-01-09 11:06:39 +01:00
1 parent a2bab7d923
commit 8d096ef85d
3 files changed
+8 -1

No files matched your search

+1
View File
@@ -271,6 +271,7 @@ export async function createCanvasHostHandler(
? chokidar.watch(rootReal, {
ignoreInitial: true,
awaitWriteFinish: { stabilityThreshold: 75, pollInterval: 10 },
usePolling: opts.allowInTests === true,
ignored: [
/(^|[\\/])\../, // dotfiles
/(^|[\\/])node_modules([\\/]|$)/,