2018-05-16 14:59:03 +00:00
|
|
|
{
|
|
|
|
"rootDir": "../../",
|
|
|
|
"collectCoverageFrom": [
|
|
|
|
"client/**/*.js",
|
2018-10-30 18:57:48 +00:00
|
|
|
"packages/**/*.js",
|
2018-05-16 14:59:03 +00:00
|
|
|
"!**/node_modules/**",
|
|
|
|
"!**/vendor/**",
|
2018-07-10 15:07:34 +00:00
|
|
|
"!**/test/**"
|
2018-05-16 14:59:03 +00:00
|
|
|
],
|
2018-10-30 18:57:48 +00:00
|
|
|
"moduleDirectories": ["node_modules", "<rootDir>/client", "<rootDir>/packages"],
|
2018-05-16 14:59:03 +00:00
|
|
|
"moduleNameMapper": {
|
2018-08-20 21:18:13 +00:00
|
|
|
"tinymce": "<rootDir>/tests/js/mocks/tinymce",
|
2018-10-30 18:57:48 +00:00
|
|
|
"@woocommerce/(.*)": "<rootDir>/packages/$1/src"
|
2018-05-16 14:59:03 +00:00
|
|
|
},
|
|
|
|
"setupFiles": [
|
|
|
|
"<rootDir>/node_modules/@wordpress/jest-preset-default/scripts/setup-globals.js",
|
|
|
|
"<rootDir>/tests/js/setup-globals"
|
|
|
|
],
|
|
|
|
"preset": "@wordpress/jest-preset-default",
|
|
|
|
"testPathIgnorePatterns": [
|
2018-10-30 18:57:48 +00:00
|
|
|
"/node_modules/",
|
|
|
|
"<rootDir>/.*/build/",
|
|
|
|
"<rootDir>/.*/build-module/"
|
2018-05-16 14:59:03 +00:00
|
|
|
],
|
2019-05-28 14:05:55 +00:00
|
|
|
"transformIgnorePatterns": [
|
|
|
|
"node_modules/(?!(newspack-components)/)"
|
|
|
|
],
|
2018-06-15 18:11:25 +00:00
|
|
|
"verbose": true
|
2018-05-16 14:59:03 +00:00
|
|
|
}
|