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

28 lines
803 B
JSON
Raw Normal View History

{
"rootDir": "../../",
"collectCoverageFrom": [
"client/**/*.js",
"packages/**/*.js",
"!**/node_modules/**",
"!**/vendor/**",
2018-07-10 15:07:34 +00:00
"!**/test/**"
],
"moduleDirectories": ["node_modules", "<rootDir>/client", "<rootDir>/packages"],
"moduleNameMapper": {
"tinymce": "<rootDir>/tests/js/mocks/tinymce",
"@woocommerce/(settings|wc-admin-settings)": "<rootDir>/client/settings/index.js",
"@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/"
],
2018-06-15 18:11:25 +00:00
"verbose": true
}