36 lines
994 B
JSON
36 lines
994 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",
|
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/tests/js/mocks/static"
|
|
},
|
|
"restoreMocks": true,
|
|
"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/"
|
|
],
|
|
"timers": "real",
|
|
"testEnvironment": "jest-environment-jsdom-sixteen",
|
|
"verbose": true
|
|
}
|