/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
test/development/app-dir/basic/basic.test.ts
17 строк
463 B
Sebastian "Sebbie" Silbermann
[test] `assert*` -> `waitFor*` when the util is not instant (#85450)
30 окт 2025, 16:44
Не верифицирован
30 окт 2025, 16:44
0b58a32
Код
Авторство
О чём код?
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) }) })