Add integration test for multi-project dev server
Adds an E2E test that spawns `next dev` with two `--experimental-project`
flags, waits for both workers to become ready, then verifies each project
serves its routes correctly on its assigned port:
- Project 1 serves "Project 1" and not "Project 2"
- Project 2 serves "Project 2" and not "Project 1"
- Both workers printed the "Ready in" startup line
The test is gated behind `hasDaemonSupport()` which checks if the native
bindings export `startTurbopackDaemon` — this is only available when
bindings are compiled from this branch (pre-built npm binaries skip it).
On CI with compiled bindings the tests run; locally they're skipped.
Also adds `.allowUnknownOption()` to both the `dev` and `build` Commander
commands so `--experimental-project` flags pass through to the manual
argv parser in `getProjectGroups()`.
Co-Authored-By:
Claude <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment