Download next.js/test/development/basic/emotion-swc/emotion-swc.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 592 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/basic/emotion-swc/emotion-swc.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/basic/emotion-swc/emotion-swc.test.ts
-
curl -L -o emotion-swc.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/basic/emotion-swc/emotion-swc.test.ts
592 Bytes
| import { join } from 'path' | |
| import { nextTestSetup } from 'e2e-utils' | |
| describe('emotion SWC option', () => { | |
| const { next } = nextTestSetup({ | |
| files: join(__dirname, 'fixture'), | |
| dependencies: { | |
| '@emotion/react': '11.10.4', | |
| '@emotion/styled': '11.10.4', | |
| '@emotion/cache': '11.10.3', | |
| }, | |
| }) | |
| it('should have styling from the css prop', async () => { | |
| const browser = await next.browser('/') | |
| const color = await browser | |
| .elementByCss('#test-element') | |
| .getComputedCss('background-color') | |
| expect(color).toBe('rgb(255, 192, 203)') | |
| }) | |
| }) | |