43 lines
1.2 KiB
JSON
43 lines
1.2 KiB
JSON
{
|
|
"rootDir": "../../",
|
|
"moduleDirectories": [
|
|
"node_modules",
|
|
"<rootDir>/client",
|
|
"<rootDir>/packages"
|
|
],
|
|
"moduleNameMapper": {
|
|
"tinymce": "<rootDir>/tests/js/mocks/tinymce",
|
|
"@woocommerce/(settings|wc-admin-settings)": "<rootDir>/client/wc-admin-settings/index.js",
|
|
"@woocommerce/([a-z]+)/build/(.*)": "<rootDir>/packages/$1/src/$2",
|
|
"@woocommerce/(.*)": "<rootDir>/packages/$1/src",
|
|
"~/(.*)": "<rootDir>/client/$1",
|
|
"\\.(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"
|
|
},
|
|
"restoreMocks": true,
|
|
"setupFiles": [
|
|
"<rootDir>/tests/js/setup-window-globals.js",
|
|
"<rootDir>/tests/js/setup-globals"
|
|
],
|
|
"setupFilesAfterEnv": [
|
|
"<rootDir>/tests/js/setup-react-testing-library.js"
|
|
],
|
|
"testMatch": [
|
|
"**/__tests__/**/*.[jt]s?(x)",
|
|
"**/test/*.[jt]s?(x)",
|
|
"**/?(*.)test.[jt]s?(x)"
|
|
],
|
|
"transform": {
|
|
"^.+\\.[jt]sx?$": "babel-jest"
|
|
},
|
|
"testPathIgnorePatterns": [
|
|
"/node_modules/",
|
|
"<rootDir>/.*/build/",
|
|
"<rootDir>/.*/build-module/",
|
|
"<rootDir>/tests/e2e/"
|
|
],
|
|
"testEnvironment": "jest-environment-jsdom-sixteen",
|
|
"timers": "modern",
|
|
"verbose": true
|
|
}
|