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",
|
|
|
|
"@woocommerce/(settings|wc-admin-settings)": "<rootDir>/client/settings/index.js",
|
2020-03-28 13:48:27 +00:00
|
|
|
"@woocommerce/(.*)": "<rootDir>/packages/$1/src",
|
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-08-12 23:29:48 +00:00
|
|
|
"setupFilesAfterEnv": [ "<rootDir>/tests/js/setup-enzyme.js" ],
|
|
|
|
"testMatch": [
|
|
|
|
"**/__tests__/**/*.[jt]s",
|
|
|
|
"**/test/*.[jt]s",
|
|
|
|
"**/?(*.)test.[jt]s"
|
|
|
|
],
|
|
|
|
"transform": {
|
|
|
|
"^.+\\.[t|j]s?$": "babel-jest"
|
|
|
|
},
|
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",
|
|
|
|
"verbose": true,
|
|
|
|
"snapshotSerializers": [ "enzyme-to-json/serializer" ]
|
2018-05-16 14:59:03 +00:00
|
|
|
}
|