Download react-slick/test-setup.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 346 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-slick/test-setup.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-slick/test-setup.js
-
curl -L -o test-setup.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-slick/test-setup.js
346 Bytes
| import "@testing-library/jest-dom/extend-expect"; | |
| import "regenerator-runtime/runtime"; | |
| //Fix for "matchMedia not present, legacy browsers require a polyfill jest" error | |
| window.matchMedia = | |
| window.matchMedia || | |
| function() { | |
| return { | |
| matches: false, | |
| addListener: function() {}, | |
| removeListener: function() {} | |
| }; | |
| }; | |