0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/docs/start/framework/react
Manuel Schiller e2340871e8 fix(start): pre-bundle Router Core's browser deps in test runs, wait for the callback in runInRequest
- A browser test run found `cookie-es`, `seroval` and
  `seroval-plugins/web` only when a test imported them, because Start's
  packages are not pre-bundled and Vite's start-up scan does not look
  into them. Vite then pre-bundled them and reloaded the page, and in CI
  a test iframe did not start ("did not become ready within 60000ms").
  The test-run plan now includes them by a path from the Start package.
- `runInRequest` resolved before the callback had finished when a
  request middleware did not wait for `next()`, and reported that the
  middleware had ended the request. It now keeps the callback's promise
  and always waits for it. That replaces two flags.
- The generator test compared route file paths built with `path.join`,
  which fails on Windows: the generator names them with forward slashes.
- Simpler: the mock registries register their maps with the setup file
  instead of a snapshot function each, the client function of a
  middleware is wrapped only when it has one, and the scope no longer
  carries a handler type that was always `router`.
- Docs: tests that run concurrently share the mocks registered outside
  `runInRequest`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
History 2026-11-15 17:39:12 +01:00
..
guide fix(start): pre-bundle Router Core's browser deps in test runs, wait for the callback in runInRequest 2026-11-15 17:39:12 +01:00
tutorial docs(start): fix tutorial and ISR guide links (#8366) 2026-09-11 14:36:09 -06:00
build-from-scratch.md rename inputValidator to validator (#7566) 2026-06-06 23:05:56 +02:00
comparison.md docs(start): substantiate framework comparison claims (#8369) 2026-09-11 15:06:24 -06:00
getting-started.md docs(start): describe key search entry pages (#8367) 2026-09-11 14:47:42 -06:00
migrate-from-next-js.md chore(pnpm): upgrade to pnpm 12 (#8912) 2026-11-09 13:24:08 +01:00
migrate-from-release-candidate.md Start stable (#8696) 2026-10-13 00:45:16 +02:00
overview.md docs (#8699) 2026-10-13 01:35:59 +02:00
start-vs-nextjs.md docs(start): substantiate framework comparison claims (#8369) 2026-09-11 15:06:24 -06:00