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

30 lines
798 B
JSON

{
"rootDir": "../../",
"collectCoverageFrom": [
"client/**/*.js",
"packages/**/*.js",
"!**/node_modules/**",
"!**/vendor/**",
"!**/test/**"
],
"moduleDirectories": ["node_modules", "<rootDir>/client", "<rootDir>/packages"],
"moduleNameMapper": {
"tinymce": "<rootDir>/tests/js/mocks/tinymce",
"@woocommerce/(.*)": "<rootDir>/packages/$1/src"
},
"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/",
"<rootDir>/.*/build/",
"<rootDir>/.*/build-module/"
],
"transformIgnorePatterns": [
"node_modules/(?!(newspack-components)/)"
],
"verbose": true
}