28 lines
778 B
JSON
28 lines
778 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/components": "<rootDir>/client/components",
|
|
"@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
|
|
}
|