next.js/test/development/app-dir/basic/basic.test.ts
basic.test.ts18 lines463 B
import { nextTestSetup } from 'e2e-utils'
import { waitForNoRedbox } from 'next-test-utils'
import { waitForHydration } from 'development-sandbox'

describe('basic app-dir tests', () => {
  const { next } = nextTestSetup({
    files: __dirname,
  })

  it('should reload app pages without error', async () => {
    const browser = await next.browser('/')
    await browser.refresh()
    await waitForHydration(browser)

    await waitForNoRedbox(browser)
  })
})
Quest for Codev2.0.0
/
SIGN IN