Files
647d923a3f Cherry-pick ghsa commits to canary (#93614)
## What?

Includes the changes from 16-2.

---------

Co-authored-by: JJ Kasper <[email protected]>
Co-authored-by: Josh Story <[email protected]>
Co-authored-by: Zack Tanner <[email protected]>
Co-authored-by: Benjamin Woodruff <[email protected]>
2026-05-07 21:57:46 +00:00

25 lines
629 B
TypeScript

import { nextTestSetup } from 'e2e-utils'
describe('app-dir - max postponed state size', () => {
const { next } = nextTestSetup({
files: __dirname,
env: {
NEXT_PRIVATE_TEST_HEADERS: '1',
},
})
it('should return 413 when next-resume request exceeds max postponed state size', async () => {
const res = await next.fetch('/', {
method: 'POST',
headers: {
'next-action': 'abc123',
'next-resume': '1',
},
body: Buffer.alloc(1025, 'x'),
})
expect(res.status).toBe(413)
expect(await res.text()).toContain('Postponed state exceeded 1 KB limit.')
})
})