From 1237656348bc21f8b1a466260a5390014c4d2076 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 7 Nov 2024 21:10:16 +0100 Subject: [PATCH] add more limited skip for windows --- test/tests.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/test/tests.ts b/test/tests.ts index 0e57111657..841eacf236 100644 --- a/test/tests.ts +++ b/test/tests.ts @@ -387,12 +387,15 @@ export function testNitro( expect(status).toBe(503); }); - it("universal import.meta", async () => { - const { status, data } = await callHandler({ url: "/api/import-meta" }); - expect(status).toBe(200); - expect(data.testFile).toMatch(/[/\\]test.txt$/); - expect(data.hasEnv).toBe(true); - }); + it.skipIf(isWindows && ctx.preset === "nitro-dev")( + "universal import.meta", + async () => { + const { status, data } = await callHandler({ url: "/api/import-meta" }); + expect(status).toBe(200); + expect(data.testFile).toMatch(/[/\\]test.txt$/); + expect(data.hasEnv).toBe(true); + } + ); it("handles custom server assets", async () => { const { data: html, status: htmlStatus } = await callHandler({