Download react-testing-library/tests/setup-env.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 357 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-testing-library/tests/setup-env.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-testing-library/tests/setup-env.js
-
curl -L -o setup-env.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-testing-library/tests/setup-env.js
357 Bytes
| import '@testing-library/jest-dom/extend-expect' | |
| import './failOnUnexpectedConsoleCalls' | |
| import {TextEncoder} from 'util' | |
| import {MessageChannel} from 'worker_threads' | |
| global.TextEncoder = TextEncoder | |
| // TODO: Revisit once https://github.com/jsdom/jsdom/issues/2448 is resolved | |
| // This isn't perfect but good enough. | |
| global.MessageChannel = MessageChannel | |