2018-05-16 14:59:03 +00:00
|
|
|
{
|
2020-02-14 02:23:21 +00:00
|
|
|
"rootDir": "../../",
|
|
|
|
"moduleDirectories": [
|
|
|
|
"node_modules",
|
|
|
|
"<rootDir>/client",
|
|
|
|
"<rootDir>/packages"
|
|
|
|
],
|
|
|
|
"moduleNameMapper": {
|
|
|
|
"tinymce": "<rootDir>/tests/js/mocks/tinymce",
|
2021-02-12 19:32:42 +00:00
|
|
|
"@woocommerce/(settings|wc-admin-settings)": "<rootDir>/client/wc-admin-settings/index.js",
|
2020-03-28 13:48:27 +00:00
|
|
|
"@woocommerce/(.*)": "<rootDir>/packages/$1/src",
|
2021-03-10 15:11:37 +00:00
|
|
|
"~/(.*)": "<rootDir>/client/$1",
|
2020-08-12 23:29:48 +00:00
|
|
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/tests/js/mocks/static",
|
|
|
|
"\\.(scss|css)$": "<rootDir>/tests/js/mocks/style-mock.js"
|
2020-02-14 02:23:21 +00:00
|
|
|
},
|
2020-05-21 17:15:08 +00:00
|
|
|
"restoreMocks": true,
|
2020-02-14 02:23:21 +00:00
|
|
|
"setupFiles": [
|
2020-08-12 23:29:48 +00:00
|
|
|
"<rootDir>/tests/js/setup-window-globals.js",
|
2020-02-14 02:23:21 +00:00
|
|
|
"<rootDir>/tests/js/setup-globals"
|
|
|
|
],
|
2020-10-15 12:41:39 +00:00
|
|
|
"setupFilesAfterEnv": [
|
|
|
|
"<rootDir>/tests/js/setup-react-testing-library.js"
|
|
|
|
],
|
2020-08-12 23:29:48 +00:00
|
|
|
"testMatch": [
|
|
|
|
"**/__tests__/**/*.[jt]s",
|
|
|
|
"**/test/*.[jt]s",
|
|
|
|
"**/?(*.)test.[jt]s"
|
|
|
|
],
|
|
|
|
"transform": {
|
2021-03-24 21:29:37 +00:00
|
|
|
"^.+\\.[jt]sx?$": "babel-jest"
|
2020-08-12 23:29:48 +00:00
|
|
|
},
|
2020-02-14 02:23:21 +00:00
|
|
|
"testPathIgnorePatterns": [
|
|
|
|
"/node_modules/",
|
|
|
|
"<rootDir>/.*/build/",
|
2020-09-04 02:31:09 +00:00
|
|
|
"<rootDir>/.*/build-module/",
|
|
|
|
"<rootDir>/tests/e2e/"
|
2020-02-14 02:23:21 +00:00
|
|
|
],
|
2020-05-21 17:15:08 +00:00
|
|
|
"testEnvironment": "jest-environment-jsdom-sixteen",
|
2020-08-12 23:29:48 +00:00
|
|
|
"timers": "modern",
|
2020-10-15 12:41:39 +00:00
|
|
|
"verbose": true
|
2018-05-16 14:59:03 +00:00
|
|
|
}
|