Skip to content

Commit

Permalink
skip for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Sep 19, 2024
1 parent 1089ed2 commit 65cc8d9
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions test/e2e/app-dir/app/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@ describe('app dir - basic', () => {
},
})

it('should have correct cache-control for SSR routes', async () => {
for (const path of ['/catch-all/first', '/ssr']) {
const res = await next.fetch(path)
expect(res.status).toBe(200)
expect(res.headers.get('Cache-Control')).toBe(
'private, no-cache, no-store, max-age=0, must-revalidate'
)
}
})
if (isNextStart) {
it('should have correct cache-control for SSR routes', async () => {
for (const path of ['/catch-all/first', '/ssr']) {
const res = await next.fetch(path)
expect(res.status).toBe(200)
expect(res.headers.get('Cache-Control')).toBe(
'private, no-cache, no-store, max-age=0, must-revalidate'
)
}
})
}

if (process.env.NEXT_EXPERIMENTAL_COMPILE) {
it('should provide query for getStaticProps page correctly', async () => {
Expand Down

0 comments on commit 65cc8d9

Please sign in to comment.