Skip to content

Commit

Permalink
Skip turbopack for now
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Oct 14, 2024
1 parent ad57736 commit 5459c36
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions test/e2e/app-dir/use-cache/use-cache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,22 +84,28 @@ describe('use-cache', () => {
})

if (isNextStart) {
it('should match the expected revalidate config on the prerender manifest', async () => {
const prerenderManifest = JSON.parse(
await next.readFile('.next/prerender-manifest.json')
)

expect(prerenderManifest.version).toBe(4)
expect(
prerenderManifest.routes['/cache-life'].initialRevalidateSeconds
).toBe(100)
})
itSkipTurbopack(
'should match the expected revalidate config on the prerender manifest',
async () => {
const prerenderManifest = JSON.parse(
await next.readFile('.next/prerender-manifest.json')
)

expect(prerenderManifest.version).toBe(4)
expect(
prerenderManifest.routes['/cache-life'].initialRevalidateSeconds
).toBe(100)
}
)

it('should propagate unstable_cache tags correctly', async () => {
const meta = JSON.parse(
await next.readFile('.next/server/app/cache-tag.meta')
)
expect(meta.headers['x-next-cache-tags']).toContain('a,c,b')
})
itSkipTurbopack(
'should propagate unstable_cache tags correctly',
async () => {
const meta = JSON.parse(
await next.readFile('.next/server/app/cache-tag.meta')
)
expect(meta.headers['x-next-cache-tags']).toContain('a,c,b')
}
)
}
})

0 comments on commit 5459c36

Please sign in to comment.