mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
test(compiler-tests): final pass F-B: shared hosts and bounded pages, fast tiers within budget
The client checks of the fast tiers run in real Chromium pages and dev servers; that made router-plugin and start-plugin-core `test:unit` take 26-39 s against hard limits of 10 s and 8 s (FINAL-PASS #13, #19), and Chromium failed module requests under load (#40). - ctu browser: `runInPage` runs on a bounded pool of pages per test process (`runPageLimit`), each run holding its page alone and the page leaving the run's document before another run gets it; `openPage` keeps at most `openPageLimit` pages open. - ctu test-scope: the test a piece of work belongs to, also in concurrent files (an `aroundEach` setup file); per-test cleanups use it instead of Vitest's global `onTestFinished`. The setup file also gives each test file the environment and working directory it started with (a `vite build` of an earlier file left `NODE_ENV=production` behind). - ctu outcome: `failWhenQuietFor` ends an edit wait once every host stayed quiet without the outcome; route HMR pins fail after 3 s quiet instead of the 15 s bound. - router-plugin route apps: hosts leased to one test at a time and kept for the test process; the fast tier and the new `integration-pages` project run the tests of a file concurrently, keep modules across files. Twelve route-app files move to `tests/integration/pages/`. - start-plugin-core: Start hosts kept across the files of a worker, each host with a pool of pages for concurrent runs (in-flight requests reset on a new document: a hydrate pin waited 10 s on stale counts); five `<Hydrate>`/import-forms files move to `tests/integration/pages/`. - Files over the 15 s slow-tier limit split in two or three. - ctu import-gate control on a fixture workspace of its own (#51). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f351b388e3
commit
fe4ce59869
92 changed files with 17069 additions and 15860 deletions
Loading…
Add table
Add a link
Reference in a new issue