0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-18 19:34:24 +00:00
router/e2e/react-start/basic/build-tests
History 2026-09-10 15:49:31 +02:00
..
prerender-crawl.test.ts test(start): move prerender crawl coverage to build suite 2026-09-10 15:49:31 +02:00
README.md test(start): move prerender crawl coverage to build suite 2026-09-10 15:49:31 +02:00

Build integration tests

These Node.js tests exercise production builds and inspect their network and filesystem effects. They run separately from the browser tests in tests/.

Run the suite from the repository root:

pnpm nx run tanstack-react-start-e2e-basic:test:build

The target participates in pnpm test:build, pnpm test:ci, and affected PR checks. Nx builds workspace dependencies first; each test owns its application build, so the target does not depend on the normal application build target. No Playwright browser or application web server is required.

The crawl test starts a local HTTP listener before building to detect requests to another origin. It enables prerendering through E2E_PRERENDER_CRAWL_ORIGIN and writes to a temporary directory under the fixture's node_modules, keeping server dependencies resolvable and generated files outside the TypeScript check. The suite allows 120 seconds per test, including the build and type check; the build process has a shorter 100-second timeout to leave time for cleanup.