Download wp-calypso/test/apps/jest-preset.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 513 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/test/apps/jest-preset.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/test/apps/jest-preset.js
-
curl -L -o jest-preset.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/test/apps/jest-preset.js
513 Bytes
| const path = require( 'path' ); | |
| const base = require( '@automattic/calypso-jest' ); | |
| module.exports = { | |
| ...base, | |
| cacheDirectory: path.join( __dirname, '../../.cache/jest' ), | |
| testEnvironment: 'jsdom', | |
| transformIgnorePatterns: [ | |
| 'node_modules[\\/\\\\](?!.*\\.(?:gif|jpg|jpeg|png|svg|scss|sass|css)$)', | |
| ], | |
| setupFiles: [ 'jest-canvas-mock' ], | |
| // This includes a lot of globals that don't exist, like fetch, matchMedia, etc. | |
| setupFilesAfterEnv: [ require.resolve( '../client/setup-test-framework.js' ) ], | |
| }; | |