next.js/test/e2e/app-document/index.test.ts
index.test.ts15 lines349 B
import { nextTestSetup } from 'e2e-utils'

describe('Document and App', () => {
  const { next } = nextTestSetup({
    files: __dirname,
  })

  it('should not have any missing key warnings', async () => {
    await next.fetch('/')
    expect(next.cliOutput).not.toContain(
      'Each child in a list should have a unique "key" prop'
    )
  })
})
Quest for Codev2.0.0
/
SIGN IN