Download wp-calypso/test/client/jest.config.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 798 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/test/client/jest.config.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/test/client/jest.config.js
-
curl -L -o jest.config.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/test/client/jest.config.js
798 Bytes
| const path = require( 'path' ); | |
| const base = require( '@automattic/calypso-jest' ); | |
| module.exports = { | |
| ...base, | |
| rootDir: '../../client', | |
| cacheDirectory: path.join( __dirname, '../../.cache/jest' ), | |
| testPathIgnorePatterns: [ '<rootDir>/server/' ], | |
| moduleNameMapper: { | |
| '^@automattic/calypso-config$': '<rootDir>/server/config/index.js', | |
| 'react-markdown': '<rootDir>/node_modules/react-markdown/react-markdown.min.js', | |
| }, | |
| transformIgnorePatterns: [ | |
| 'node_modules[\\/\\\\](?!@fnando[\\/\\\\]|.*\\.(?:gif|jpg|jpeg|png|svg|scss|sass|css)$)', | |
| ], | |
| testEnvironmentOptions: { | |
| url: 'https://example.com', | |
| }, | |
| setupFiles: [ 'jest-canvas-mock' ], | |
| setupFilesAfterEnv: [ '<rootDir>/../test/client/setup-test-framework.js' ], | |
| globals: { | |
| google: {}, | |
| __i18n_text_domain__: 'default', | |
| }, | |
| }; | |