This is a follow on from #4653
This PR resolves flaky E2E tests caused by port collisions when running
tests in parallel.
Instead of deriving ports from package names (which can collide), this
new approach assigns a random, available port to each test server
instance.
Key Changes:
- Random Port Allocation: Each test server (Playwright, dummy servers)
gets a unique, random port at startup.
- File-based Sync: The server writes its assigned port to a port.txt
file in its test project directory, this is kept unique through using
the package name or another input string for the file name.
- Test Runner Sync: The test runner reads the port from that file to
build the correct URL.
- Automatic Cleanup: All port files are deleted at the start of each
test:e2e run to ensure fresh ports.
Local parallel runs (up to 10) have shown this to be stable and free of
collisions.
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* using the a TextEncoder
* trying without the changes from #1822
* revert that last commit
* use TextDecoder on the client-side of the stream
* undo
* temporary disable
* re-enable
* style: eslint warnings
* log error events
* gitignore wrangler outputs
* fix(react-router): encodeURI the parameters when building the pathname before commit
* chore(react-router): add a good comment so we dont nuke this in the future
* test(react-router): add tests to confirm functionality of the path params changes
* chore: ignore the `*.vitest-temp.json` files
* chore: delete `tsconfig.vitest-temp.json`
* fix: updated vinxi ssr example with streaming
* chore: updated vinxi packages
* chore: unused imports
* fix: use type instead of mode
* fix: updated vinxi example to latest tsr
* chore: cleanup
* chore: use createTanStackRouter
* style: run prettier
* chore: package json to reflect the other examples
* chore: rebased with latest main
* style: prettier
---------
Co-authored-by: @alessandrojcm <alessandro.cuppari@broadridge.com>
Co-authored-by: @SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
* chore: ignore the `*.gen.ts` outputs from the `tests` folder in `packges/router-generator`
* chore: add the test script
* test: add tests for 'single-level' routing
* test: add tests for 'flat' routing
* test: amend the 'flat' routing test to include a `route`-level config
* test: add tests for 'nested' routing
* test: match the dir structure between the 'flat' and 'nested' test cases
* test: add tests for complex 'nested-layouts' routing
* chore: disable logging from the `router-generator` package when testing
* chore: space that wasn't supposed to be there
* test: use `routeTree.expected.ts` for storing the expected outputs
* chore: remove comment
* test: run all the generator tests against all its subfolders
* docs: fixed variable name error (#715)
used the wrong example in customStringifier example
* Fix(router-cli): Fixes on Windows and Improvements (#717)
* (fix) Fixed backslash on windows
(fix) Sanitized routePaths, import and interface keys
(enhanched) made the parent search recursive
(question) how layouts need to be generated?
* (feat) Added WIP example for file routing
* (fix) add debug json in ignored
* (fix) Added return type to 'hasParentRoute'
(fix) Removed example, moved to another branch
---------
Co-authored-by: Koja sig. Dennis <DKOJA@ceia-spa.com>
* fix: types for useNavigate and useMatchRoute (#723)
* document passing Link isActive to children (#725)
---------
Co-authored-by: Frank Tran <ftransd@gmail.com>
Co-authored-by: Denny09310 <50493437+Denny09310@users.noreply.github.com>
Co-authored-by: Koja sig. Dennis <DKOJA@ceia-spa.com>
Co-authored-by: Blake Gentry <bgentry@users.noreply.github.com>
* refactored the astro example to app to abstract the infra out into @tanstack/start
* move astro integration to package
* fix router types
* move from start to react-start
* some fixes
* fix bling pacakge name
* add .netlify to gitignore