/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
test/e2e/app-dir/externalize-node-binary/externalize-node-binary.test.ts
16 строк
523 B
Jiachi Liu
Fix: revert the bad node binary handling (#71723)
23 окт 2024, 17:41
Не верифицирован
23 окт 2024, 17:41
aed6c4c
Код
Авторство
О чём код?
import { nextTestSetup } from 'e2e-utils' // FIXME: er-enable when we have a better implementation of node binary resolving describe.skip('externalize-node-binary', () => { const { next } = nextTestSetup({ files: __dirname, }) it('should render correctly when node_modules require node binary module', async () => { const { status } = await next.fetch('/') expect(status).toBe(200) const browser = await next.browser('/') expect(await browser.elementByCss('p').text()).toBe('I am foo') }) })