39 lines
1.1 KiB
JSON
39 lines
1.1 KiB
JSON
{
|
|
"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",
|
|
"@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",
|
|
"\\.(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-enzyme.js" ],
|
|
"testMatch": [
|
|
"**/__tests__/**/*.[jt]s",
|
|
"**/test/*.[jt]s",
|
|
"**/?(*.)test.[jt]s"
|
|
],
|
|
"transform": {
|
|
"^.+\\.[t|j]s?$": "babel-jest"
|
|
},
|
|
"testPathIgnorePatterns": [
|
|
"/node_modules/",
|
|
"<rootDir>/.*/build/",
|
|
"<rootDir>/.*/build-module/"
|
|
],
|
|
"testEnvironment": "jest-environment-jsdom-sixteen",
|
|
"timers": "modern",
|
|
"verbose": true,
|
|
"snapshotSerializers": [ "enzyme-to-json/serializer" ]
|
|
}
|