Skip to content

Commit e18212f

Browse files
committed
re-enable vary header deploy test (#79753)
Since the corresponding change has been released in Vercel CLI, we can re-enable the test.
1 parent ec202ec commit e18212f

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

test/e2e/app-dir/app/index.test.ts

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -331,20 +331,18 @@ describe('app dir - basic', () => {
331331
)
332332
})
333333

334-
if (!isNextDeploy) {
335-
it('should return the `vary` header from pages for flight requests', async () => {
336-
const res = await next.fetch('/', {
337-
headers: {
338-
['RSC'.toString()]: '1',
339-
},
340-
})
341-
expect(res.headers.get('vary')).toBe(
342-
isNextDeploy
343-
? 'RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Router-Segment-Prefetch'
344-
: 'RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Router-Segment-Prefetch, Accept-Encoding'
345-
)
334+
it('should return the `vary` header from pages for flight requests', async () => {
335+
const res = await next.fetch('/', {
336+
headers: {
337+
['RSC'.toString()]: '1',
338+
},
346339
})
347-
}
340+
expect(res.headers.get('vary')).toBe(
341+
isNextDeploy
342+
? 'RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Router-Segment-Prefetch'
343+
: 'RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Router-Segment-Prefetch, Accept-Encoding'
344+
)
345+
})
348346

349347
it('should pass props from getServerSideProps in root layout', async () => {
350348
const $ = await next.render$('/dashboard')

0 commit comments

Comments
 (0)