/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
test/development/empty-project/empty-project.test.ts
18 строк
417 B
Tim Neutkens
Convert test/integration to isolated tests (#93247)
11 май 2026, 14:55
Не верифицирован
11 май 2026, 14:55
8141dcf
Код
Авторство
О чём код?
import { nextTestSetup } from 'e2e-utils' describe('Empty Project', () => { const { next } = nextTestSetup({ files: __dirname, skipStart: true, }) beforeAll(async () => { await next.deleteFile('pages/.gitkeep') await next.start() }) it('Should not time out and return 404', async () => { const res = await next.fetch('/', { timeout: 10_000 }) expect(res.status).toBe(404) }) })