2018-05-16 14:59:03 +00:00
|
|
|
{
|
|
|
|
"rootDir": "../../",
|
|
|
|
"collectCoverageFrom": [
|
|
|
|
"client/**/*.js",
|
|
|
|
"!**/node_modules/**",
|
|
|
|
"!**/vendor/**",
|
2018-07-05 12:18:02 +00:00
|
|
|
"!**/test/**",
|
2018-07-10 12:46:57 +00:00
|
|
|
"!client/components/d3/charts/test/dummy.js"
|
2018-05-16 14:59:03 +00:00
|
|
|
],
|
2018-06-20 15:10:06 +00:00
|
|
|
"moduleDirectories": ["node_modules", "<rootDir>/client"],
|
2018-05-16 14:59:03 +00:00
|
|
|
"moduleNameMapper": {
|
2018-05-28 10:55:19 +00:00
|
|
|
"@wordpress\\/(blocks|components|editor|data|utils|edit-post|viewport|plugins|core-data)": "<rootDir>/node_modules/gutenberg/$1",
|
2018-05-21 15:26:04 +00:00
|
|
|
"@wordpress\\/(date|element|dom)$": "<rootDir>/node_modules/gutenberg/packages/$1/src",
|
2018-05-16 14:59:03 +00:00
|
|
|
"@wordpress\\/api-request": "<rootDir>/tests/js/mocks/api-request",
|
|
|
|
"tinymce": "<rootDir>/tests/js/mocks/tinymce"
|
|
|
|
},
|
|
|
|
"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/"
|
|
|
|
],
|
|
|
|
"transformIgnorePatterns": [
|
|
|
|
"node_modules/(?!(gutenberg)/)"
|
2018-06-15 18:11:25 +00:00
|
|
|
],
|
|
|
|
"verbose": true
|
2018-05-16 14:59:03 +00:00
|
|
|
}
|