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

30 lines
975 B
JSON
Raw Normal View History

{
"rootDir": "../../",
"collectCoverageFrom": [
"client/**/*.js",
"!**/node_modules/**",
"!**/vendor/**",
"!**/test/**",
2018-07-10 12:46:57 +00:00
"!client/components/d3/charts/test/dummy.js"
],
"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)$": "<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
}