woocommerce/plugins/woocommerce-admin/tests/js/jest.config.json

29 lines
945 B
JSON
Raw Normal View History

{
"rootDir": "../../",
"collectCoverageFrom": [
"client/**/*.js",
"!**/node_modules/**",
"!**/vendor/**",
2018-07-10 15:07:34 +00:00
"!**/test/**"
],
"moduleDirectories": ["node_modules", "<rootDir>/client"],
"moduleNameMapper": {
2018-05-28 10:55:19 +00:00
"@wordpress\\/(blocks|components|editor|data|utils|edit-post|viewport|plugins|core-data)": "<rootDir>/node_modules/gutenberg/$1",
"@wordpress\\/(date|element|dom|keycodes|deprecated)$": "<rootDir>/node_modules/gutenberg/packages/$1/src",
"@wordpress\\/api-request": "<rootDir>/tests/js/mocks/api-request",
"tinymce": "<rootDir>/tests/js/mocks/tinymce"
},
"setupFiles": [
"<rootDir>/node_modules/@wordpress/jest-preset-default/scripts/setup-globals.js",
"<rootDir>/tests/js/setup-globals"
],
"preset": "@wordpress/jest-preset-default",
"testPathIgnorePatterns": [
"/node_modules/"
],
"transformIgnorePatterns": [
"node_modules/(?!(gutenberg)/)"
2018-06-15 18:11:25 +00:00
],
"verbose": true
}