feat(server): pick free port if none specified (#1274)

This commit is contained in:
Marvin Hagemeister
2023-06-12 13:18:52 +02:00
committed by GitHub
parent 69f4fecf5a
commit 36d56a9878
10 changed files with 107 additions and 61 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ Deno.test({
name: "/with-island hydration",
async fn(t) {
// Preparation
const { lines, serverProcess } = await startFreshServer({
const { lines, serverProcess, address } = await startFreshServer({
args: ["run", "-A", "./tests/fixture_plugin/main.ts"],
});
@@ -71,7 +71,7 @@ Deno.test({
const browser = await puppeteer.launch({ args: ["--no-sandbox"] });
const page = await browser.newPage();
await page.goto("http://localhost:8000/with-island", {
await page.goto(`${address}/with-island`, {
waitUntil: "networkidle2",
});