/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
test/production/sharp-basic/sharp-basic.test.ts
25 строк
582 B
Niklas Mischkulnig
Fix test after CI switched to pnpm 10 (#76615)
27 фев 2025, 22:47
Не верифицирован
27 фев 2025, 22:47
ede5cf8
Код
Авторство
О чём код?
import { nextTestSetup } from 'e2e-utils' describe('sharp support with hasNextSupport', () => { const { next } = nextTestSetup({ files: __dirname, dependencies: { sharp: 'latest', }, packageJson: { pnpm: { onlyBuiltDependencies: ['sqlite3'], }, }, env: { NOW_BUILDER: '1', }, }) // we're mainly checking if build/start were successful so // we have a basic assertion here it('should work using cheerio', async () => { const $ = await next.render$('/') expect($('p').text()).toBe('hello world') }) })