next.js/test/e2e/app-dir/no-duplicate-headers-next-config/no-duplicate-headers-next-config.test.ts
no-duplicate-headers-next-config.test.ts14 lines395 B
import { nextTestSetup } from 'e2e-utils'

describe('no-duplicate-headers-next-config', () => {
  const { next } = nextTestSetup({
    files: __dirname,
  })

  it('should prioritise headers in next config for static assets', async () => {
    const res = await next.fetch('favicon.ico')
    expect(res.status).toBe(200)
    expect(res.headers.get('cache-control')).toBe('max-age=1234')
  })
})
Quest for Codev2.0.0
/
SIGN IN