Skip to content

Commit

Permalink
add more limited skip for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 7, 2024
1 parent 00c2d90 commit 1237656
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions test/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 1237656

Please sign in to comment.