next.js/test/production/empty-ssg-fallback/empty-ssg-fallback.test.ts
empty-ssg-fallback.test.ts13 lines293 B
import { nextTestSetup } from 'e2e-utils'

describe('empty-ssg-fallback', () => {
  const { next } = nextTestSetup({
    files: __dirname,
  })

  it('should not cache 404 error page', async () => {
    const res = await next.fetch('/any-non-existed')
    expect(res.status).toBe(404)
  })
})
Quest for Codev2.0.0
/
SIGN IN