mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-07-28 01:57:35 +08:00
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
24 lines
1 KiB
JSON
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"
|
|
}
|
|
}
|