31 lines
885 B
JSON
31 lines
885 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/(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/"
|
|
],
|
|
"transformIgnorePatterns": [
|
|
"node_modules/(?!(newspack-components)/)"
|
|
],
|
|
"verbose": true
|
|
}
|