Download react-redux-typescript-guide/configs/jest.stubs.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-redux-typescript-guide/configs/jest.stubs.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-redux-typescript-guide/configs/jest.stubs.js
-
curl -L -o jest.stubs.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-redux-typescript-guide/configs/jest.stubs.js
396 Bytes
| // Global/Window object Stubs for Jest | |
| window.matchMedia = window.matchMedia || function () { | |
| return { | |
| matches: false, | |
| addListener: function () { }, | |
| removeListener: function () { }, | |
| }; | |
| }; | |
| window.requestAnimationFrame = function (callback) { | |
| setTimeout(callback); | |
| }; | |
| window.localStorage = { | |
| getItem: function () { }, | |
| setItem: function () { }, | |
| }; | |
| Object.values = () => []; | |