mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
ci: update fixtures to node 18 (#23122)
This commit is contained in:
parent
df6a992cd6
commit
63d189a0c7
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -170,7 +170,7 @@ jobs:
|
|||||||
env: ['dev', 'built']
|
env: ['dev', 'built']
|
||||||
builder: ['vite', 'webpack']
|
builder: ['vite', 'webpack']
|
||||||
context: ['async', 'default']
|
context: ['async', 'default']
|
||||||
node: [16]
|
node: [18]
|
||||||
exclude:
|
exclude:
|
||||||
- env: 'dev'
|
- env: 'dev'
|
||||||
builder: 'webpack'
|
builder: 'webpack'
|
||||||
|
@ -751,12 +751,7 @@ describe('errors', () => {
|
|||||||
|
|
||||||
it('should render a HTML error page', async () => {
|
it('should render a HTML error page', async () => {
|
||||||
const res = await fetch('/error')
|
const res = await fetch('/error')
|
||||||
// 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(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')
|
expect(await res.text()).toContain('This is a custom error')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user