/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
test/production/error-plugin-stack-overflow/error-plugin-stack-overflow.test.ts
20 строк
653 B
Tim Neutkens
Convert test/integration to isolated tests (#93247)
11 май 2026, 14:55
Не верифицирован
11 май 2026, 14:55
8141dcf
Код
Авторство
О чём код?
import { nextTestSetup } from 'e2e-utils' ;(process.env.IS_TURBOPACK_TEST ? describe.skip : describe)( 'Reports stack trace when webpack plugin stack overflows', () => { const { next } = nextTestSetup({ files: __dirname, skipStart: true, }) it('shows details in next build', async () => { const { exitCode } = await next.build() expect(exitCode).toBe(1) expect(next.cliOutput).toContain( 'caused by plugins in Compilation.hooks.processAssets' ) expect(next.cliOutput).toContain('Maximum call stack size exceeded') expect(next.cliOutput).toContain('next.config.js:7') }) } )