32 lines
774 B
JSON
32 lines
774 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/"
|
|
],
|
|
"verbose": true
|
|
}
|