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

24 lines
617 B
JSON

{
"rootDir": "../../",
"collectCoverageFrom": [
"client/**/*.js",
"!**/node_modules/**",
"!**/vendor/**",
"!**/test/**"
],
"moduleDirectories": ["node_modules", "<rootDir>/client"],
"moduleNameMapper": {
"tinymce": "<rootDir>/tests/js/mocks/tinymce",
"@woocommerce/components": "<rootDir>/client/components"
},
"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/"
],
"verbose": true
}