mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
test(compiler-test-utils): event-based settle() for the Rsbuild dev-server harness
write(), rename() and settle() on the Rsbuild harness (FIX-PLAN A5, speedup 4): settle() waits, on the compiles' own hooks only, until no compile runs or is pending (watchRun/done/failed, Rspack's `invalid`), Rsbuild recorded the last compile, every app file the last compile read is as it was when that compile started (before the plugins' own watchRun taps, whose writes the next compile reads), and every written file is read by a compile or taken by the caller's accept(). More than 10 compiles in one settle() is a rewrite loop. This replaces the router-plugin harness's 750 ms quiet time. Vite harness: `server.forwardConsole: false`. Vite 8 forwards a page's console to the server log when it detects a coding agent running it, so `logs` depended on who ran the tests; a page's console stays the page's. Contract tests: a plugin writing a file in a compile, an unread written file with and without accept(), a plugin rewriting a file on each compile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
cdbf47fc0b
commit
5916dca3fa
3 changed files with 366 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue