next.js/test/development/basic/theme-ui/theme-ui.test.ts
theme-ui.test.ts18 lines477 B
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)')
  })
})
Quest for Codev2.0.0
/
SIGN IN