0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/e2e/react-start/server-functions
Nico Lynzaad f0a60cbb71
test(e2e): use locally hosted api over an external provider (#4725)
A lot of our e2e tests are querying external endpoints like
[typicode.com](https://jsonplaceholder.typicode.com) or
[example.com](https://example.com)

This is not ideal as it makes the e2e tests beholden to external factors
for example unavailability or rate limiting of these endpoints.

This PR addresses this by starting and stopping a local dummy server for
each test that needs to query external endpoints and mocks the results.
The setup and teardown have been implemented on each test package
individually so as to allow custom requirements where needed.

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
History 2025-07-22 00:15:28 +02:00
..
public refactor(react-start): rename e2e/start to e2e/react-start (#3565) 2025-02-25 22:37:01 +01:00
src feat: pass in router instance in client function middleware (#4723) 2025-07-21 01:09:46 +02:00
tests feat: pass in router instance in client function middleware (#4723) 2025-07-21 01:09:46 +02:00
.gitignore feat: Merge alpha to main (#4365) 2025-06-10 23:19:32 +02:00
.prettierignore refactor(react-start): rename e2e/start to e2e/react-start (#3565) 2025-02-25 22:37:01 +01:00
package.json fix: assign random ports for e2e tests (#4676) 2025-07-17 07:24:59 +02:00
playwright.config.ts test(e2e): use locally hosted api over an external provider (#4725) 2025-07-22 00:15:28 +02:00
postcss.config.mjs refactor(react-start): rename e2e/start to e2e/react-start (#3565) 2025-02-25 22:37:01 +01:00
tailwind.config.mjs chore: move start e2e and example projects from ./app to ./src (#3712) 2025-03-09 23:35:20 +01:00
tsconfig.json feat: Merge alpha to main (#4365) 2025-06-10 23:19:32 +02:00
vite.config.ts feat: Merge alpha to main (#4365) 2025-06-10 23:19:32 +02:00