Tests: stabilize file watchers

This commit is contained in:
Onur
2026-01-08 09:49:27 +03:00
committed by Peter Steinberger
parent a2bab7d923
commit 8d096ef85d
3 changed files with 8 additions and 1 deletions

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([\\/]|$)/,