Download react-testing-library/src/__mocks__/axios.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-testing-library/src/__mocks__/axios.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-testing-library/src/__mocks__/axios.js
-
curl -L -o axios.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-testing-library/src/__mocks__/axios.js
319 Bytes
| module.exports = { | |
| get: jest.fn(() => Promise.resolve({data: {}})), | |
| } | |
| // Note: | |
| // For now we don't need any other method (POST/PUT/PATCH), what we have already works fine. | |
| // We will add more methods only if we need to. | |
| // For reference please read: https://github.com/testing-library/react-testing-library/issues/2 | |