From cd37a21c2e98d99fd7c944986e42f2b3964da6ec Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 17 May 2022 02:40:35 +0100 Subject: [PATCH] fix(test-utils): hardcode ipv4 ip for localhost (#4998) --- packages/test-utils/src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/test-utils/src/server.ts b/packages/test-utils/src/server.ts index 35aed54357..77b31933f0 100644 --- a/packages/test-utils/src/server.ts +++ b/packages/test-utils/src/server.ts @@ -12,7 +12,7 @@ export async function startServer () { const ctx = useTestContext() await stopServer() const port = await getRandomPort() - ctx.url = 'http://localhost:' + port + ctx.url = 'http://127.0.0.1:' + port if (ctx.options.dev) { const nuxiCLI = await kit.resolvePath('nuxi/cli') ctx.serverProcess = execa(nuxiCLI, ['dev'], {