chore: Cleanup payment related components #6861
ci.yml
on: pull_request
Install deps
18s
Build Self Hosted Image
/
Build Self Hosted App
4m 14s
Codecov Startup
/
Codecov Startup
17s
Generate runner indexes Vitest
3s
Run Lint
1m 17s
Run Type Checker
46s
Run Prettier Check
36s
Upload Bundle Stats - Production
1m 46s
Upload Bundle Stats - Staging
1m 50s
Run storybook
1m 39s
Run Fossa
15s
Build Self Hosted Image
/
Push Self Hosted Image
0s
Build Self Hosted Image
/
Push Self Hosted Release Image
0s
Matrix: test-vitest
Build App
0s
Push Self Hosted Image
/
Push Self Hosted Image
Push Self Hosted Image
/
Push Self Hosted Release Image
Annotations
18 errors
src/pages/PlanPage/subRoutes/CurrentOrgPlan/BillingDetails/PaymentCard/PaymentCard.test.jsx > PaymentCard > when there is an error in the form > renders the error:
src/services/navigation/useNavLinks/useNavLinks.ts#L53
TypeError: Cannot read properties of undefined (reading 'match')
❯ Proxy.useParams node_modules/react-router/modules/hooks.js:40:17
❯ Module.useNavLinks src/services/navigation/useNavLinks/useNavLinks.ts:53:7
❯ useLinkConfig src/shared/AppLink/AppLink.tsx:10:9
❯ src/shared/AppLink/AppLink.tsx:113:3
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ updateForwardRef node_modules/react-dom/cjs/react-dom.development.js:19245:20
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21675:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
|
src/pages/PlanPage/subRoutes/CurrentOrgPlan/BillingDetails/PaymentCard/PaymentMethodForm.test.tsx > PaymentMethodForm > when there is an error in the form > renders the error:
src/pages/PlanPage/subRoutes/CurrentOrgPlan/BillingDetails/PaymentCard/PaymentMethodForm.tsx#L162
Error: [vitest] No "MissingNameError" export is defined on the "services/account/useUpdatePaymentMethod" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("services/account/useUpdatePaymentMethod"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ getErrorMessage src/pages/PlanPage/subRoutes/CurrentOrgPlan/BillingDetails/PaymentCard/PaymentMethodForm.tsx:162:14
❯ PaymentMethodForm src/pages/PlanPage/subRoutes/CurrentOrgPlan/BillingDetails/PaymentCard/PaymentMethodForm.tsx:98:14
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
|
Test Runner #2 - Vitest
Process completed with exit code 1.
|
Test Runner #8 - Vitest
The job was canceled because "_2" failed.
|
Test Runner #0 - Vitest
The job was canceled because "_2" failed.
|
Test Runner #0 - Vitest
The operation was canceled.
|
Test Runner #3 - Vitest
The job was canceled because "_2" failed.
|
Test Runner #3 - Vitest
The operation was canceled.
|
Test Runner #7 - Vitest
The job was canceled because "_2" failed.
|
Test Runner #7 - Vitest
The operation was canceled.
|
Test Runner #1 - Vitest
The job was canceled because "_2" failed.
|
Test Runner #1 - Vitest
The operation was canceled.
|
Test Runner #5 - Vitest
The job was canceled because "_2" failed.
|
Test Runner #5 - Vitest
The operation was canceled.
|
Test Runner #4 - Vitest
The job was canceled because "_2" failed.
|
Test Runner #4 - Vitest
The operation was canceled.
|
Test Runner #6 - Vitest
The job was canceled because "_2" failed.
|
Test Runner #6 - Vitest
The operation was canceled.
|