diff --git a/test/presets/nitro-dev.test.ts b/test/presets/nitro-dev.test.ts index a7596b4bd9..9c6c39c5b7 100644 --- a/test/presets/nitro-dev.test.ts +++ b/test/presets/nitro-dev.test.ts @@ -1,9 +1,8 @@ import type { OpenAPI3 } from "openapi-typescript"; -import { isCI } from "std-env"; import { describe, expect, it } from "vitest"; import { setupTest, testNitro } from "../tests"; -describe.skipIf(isCI)("nitro:preset:nitro-dev", async () => { +describe("nitro:preset:nitro-dev", async () => { const ctx = await setupTest("nitro-dev"); testNitro( ctx, diff --git a/test/tests.ts b/test/tests.ts index 0e57111657..4f2aec0dc4 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({ @@ -698,7 +701,7 @@ export function testNitro( }); describe("cache", () => { - it.skipIf(ctx.isIsolated)( + it.skipIf(ctx.isIsolated || (isWindows && ctx.preset === "nitro-dev"))( "should setItem before returning response the first time", async () => { const {