Download next.js/test/development/basic/theme-ui/theme-ui.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 477 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/basic/theme-ui/theme-ui.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/basic/theme-ui/theme-ui.test.ts
-
curl -L -o theme-ui.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/basic/theme-ui/theme-ui.test.ts
477 Bytes
| 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)') | |
| }) | |
| }) | |