chore: fix use free port in builder globals test (#3529)

Fix "port in use" problem re-introduced in builder globals test.
This commit is contained in:
fry69
2025-10-06 07:54:44 +00:00
committed by GitHub
parent 909c2b3280
commit b3c91bd008
+1 -1
View File
@@ -889,7 +889,7 @@ export const app = new App().fsRoutes();`,
await builder.build();
await withChildProcessServer(
{ cwd: tmp, args: ["serve", "-A", "dist/server.js"] },
{ cwd: tmp, args: ["serve", "-A", "--port=0", "dist/server.js"] },
async (address) => {
const res = await fetch(address);
const html = await res.text();