diff --git a/test/fixture/api/cached.ts b/test/fixture/api/cached.ts index ce22d62687..0b76b1b512 100644 --- a/test/fixture/api/cached.ts +++ b/test/fixture/api/cached.ts @@ -1,9 +1,6 @@ -export default defineCachedEventHandler( - (event) => { - return { - timestamp: Date.now(), - eventContextCache: event.context.cache, - }; - }, - { swr: true, maxAge: 10 } -); +export default defineCachedEventHandler((event) => { + return { + timestamp: Date.now(), + eventContextCache: event.context.cache, + }; +}); diff --git a/test/tests.ts b/test/tests.ts index 841eacf236..4f2aec0dc4 100644 --- a/test/tests.ts +++ b/test/tests.ts @@ -701,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 {