Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

webServer.ts

9 lines427 Bytes

1// Vite, Rsbuild, srvx, serve, and the custom E2E servers print their bound
2// address only after listening. Playwright exports named captures to workers.
3export const appServerReadyPattern =
4 /(?:Local:|Listening on|Accepting connections at|E2E app:)[^\n]*?https?:\/\/(?:localhost|127\.0\.0\.1|\[::\]):(?<E2E_APP_PORT>\d+)/
5​
6export const appServerReady = {
7 stdout: appServerReadyPattern,
8 stderr: appServerReadyPattern,
9}