/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
test/development/basic/theme-ui/theme-ui.test.ts
17 строк
477 B
Wyatt Johnson
Replace createNextDescribe with nextTestSetup (#64817)
25 апр 2024, 21:06
Не верифицирован
25 апр 2024, 21:06
c6320ed
Код
Авторство
О чём код?
import { join } from 'path' import { nextTestSetup } from 'e2e-utils' describe('theme-ui SWC option', () => { const { next } = nextTestSetup({ files: join(__dirname, 'fixture'), dependencies: { 'theme-ui': '0.12.0', }, }) it('should have theme provided styling', async () => { const browser = await next.browser('/') const color = await browser.elementByCss('#hello').getComputedCss('color') expect(color).toBe('rgb(51, 51, 238)') }) })