Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/fresh/src/dev/builder_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export const app = new App().fsRoutes()`,

let text = "fail";
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}/foo`);
text = await res.text();
Expand Down Expand Up @@ -343,7 +343,7 @@ export const app = new App().fsRoutes()`,

let text = "fail";
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);
text = await res.text();
Expand Down Expand Up @@ -489,7 +489,7 @@ export const app = new App()
await new Builder({ root: tmp }).build();

await withChildProcessServer(
{ cwd: tmp, args: ["serve", "-A", "_fresh/server.js"] },
{ cwd: tmp, args: ["serve", "-A", "--port=0", "_fresh/server.js"] },
async (address) => {
let res = await fetch(`${address}/foo.txt`);
expect(await res.text()).toEqual("ok");
Expand Down Expand Up @@ -599,7 +599,7 @@ export const app = new App().fsRoutes()`,

let text = "fail";
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);
text = await res.text();
Expand Down
Loading