diff --git a/test/basic.test.ts b/test/basic.test.ts index 552f9249fc..0b69b0d026 100644 --- a/test/basic.test.ts +++ b/test/basic.test.ts @@ -600,9 +600,12 @@ describe('errors', () => { it('should render a HTML error page', async () => { const res = await fetch('/error') - expect(res.headers.get('Set-Cookie')).toBe('set-in-plugin=true; Path=/') - // TODO: enable when we update test to node v16 - // expect(res.headers.get('Set-Cookie')).toBe('set-in-plugin=true; Path=/, some-error=was%20set; Path=/') + // TODO: remove when we update CI to node v18 + if (process.version.startsWith('v16')) { + expect(res.headers.get('Set-Cookie')).toBe('set-in-plugin=true; Path=/') + } else { + expect(res.headers.get('Set-Cookie')).toBe('set-in-plugin=true; Path=/, some-error=was%20set; Path=/') + } expect(await res.text()).toContain('This is a custom error') })