Download wp-calypso/test/packages/setup.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/test/packages/setup.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/test/packages/setup.js
-
curl -L -o setup.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/test/packages/setup.js
421 Bytes
| import '@testing-library/jest-dom'; | |
| global.crypto.randomUUID = () => 'fake-uuid'; | |
| global.ResizeObserver = require( 'resize-observer-polyfill' ); | |
| global.matchMedia = jest.fn( ( query ) => ( { | |
| matches: false, | |
| media: query, | |
| onchange: null, | |
| addListener: jest.fn(), // deprecated | |
| removeListener: jest.fn(), // deprecated | |
| addEventListener: jest.fn(), | |
| removeEventListener: jest.fn(), | |
| dispatchEvent: jest.fn(), | |
| } ) ); | |