woocommerce-paypal-payments/tests/js/jest.config.json
Kyrylo 8e3d65ff97
Some checks failed
CI / static-code-analysis-php (push) Has been cancelled
CI / tests-unit-php (7.4) (push) Has been cancelled
CI / tests-unit-php (8.0) (push) Has been cancelled
CI / tests-unit-php (8.1) (push) Has been cancelled
CI / tests-unit-php (8.2) (push) Has been cancelled
CI / tests-unit-php (8.3) (push) Has been cancelled
CI / tests-unit-php (8.4) (push) Has been cancelled
Build and distribute / build-and-distribute (push) Has been cancelled
CI / coding-standards-analysis-php (push) Has been cancelled
Add JS tests
2026-06-09 19:14:29 +03:00

24 lines
1 KiB
JSON

{
"preset": "@wordpress/jest-preset-default",
"rootDir": "../../",
"moduleDirectories": [ "node_modules" ],
"moduleNameMapper": {
"^react$": "<rootDir>/node_modules/react",
"^react-dom$": "<rootDir>/node_modules/react-dom",
"^@ppcp-button/(.*)$": "<rootDir>/modules/ppcp-button/resources/js/modules/$1",
"^@ppcp-settings/(.*)$": "<rootDir>/modules/ppcp-settings/resources/js/$1",
"^@ppcp-blocks/(.*)$": "<rootDir>/modules/ppcp-blocks/resources/js/$1",
"^@ppcp-card-fields/(.*)$": "<rootDir>/modules/ppcp-card-fields/resources/js/$1",
"^@ppcp-paylater-block/(.*)$": "<rootDir>/modules/ppcp-paylater-block/resources/js/$1",
"^@ppcp-googlepay/(.*)$": "<rootDir>/modules/ppcp-googlepay/resources/js/$1"
},
"testPathIgnorePatterns": [
"<rootDir>/tests/",
"<rootDir>/.ddev/",
"<rootDir>/node_modules/",
"<rootDir>/vendor/"
],
"transform": {
"^.+\\.(js|ts|tsx)$": "<rootDir>/tests/js/jestPreprocess.js"
}
}