Download wp-calypso/test/packages/jest-preset.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 521 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/test/packages/jest-preset.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/test/packages/jest-preset.js
-
curl -L -o jest-preset.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/test/packages/jest-preset.js
521 Bytes
| const path = require( 'path' ); | |
| const base = require( '@automattic/calypso-jest' ); | |
| process.env.TZ = 'UTC'; | |
| /** | |
| * Can't use `preset: '@automattic/calypso-jest'` because preset are not recursive. In other words, | |
| * if this config contains `preset`, then it can't be consumed as a preset by anybody else. | |
| */ | |
| module.exports = { | |
| ...base, | |
| cacheDirectory: path.join( __dirname, '../../.cache/jest' ), | |
| globals: { | |
| __i18n_text_domain__: 'default', | |
| }, | |
| setupFilesAfterEnv: [ '<rootDir>../../test/packages/setup.js' ], | |
| }; | |