Skip to content

chore: Cleanup payment related components #6861

chore: Cleanup payment related components

chore: Cleanup payment related components #6861

Triggered via pull request January 30, 2025 03:10
Status Failure
Total duration 4m 26s
Artifacts

ci.yml

on: pull_request
Install deps
18s
Install deps
Build Self Hosted Image  /  Build Self Hosted App
4m 14s
Build Self Hosted Image / Build Self Hosted App
Codecov Startup  /  Codecov Startup
17s
Codecov Startup / Codecov Startup
Generate runner indexes Vitest
3s
Generate runner indexes Vitest
Run Lint
1m 17s
Run Lint
Run Type Checker
46s
Run Type Checker
Run Prettier Check
36s
Run Prettier Check
Upload Bundle Stats - Production
1m 46s
Upload Bundle Stats - Production
Upload Bundle Stats - Staging
1m 50s
Upload Bundle Stats - Staging
Run storybook
1m 39s
Run storybook
Run Fossa
15s
Run Fossa
Build Self Hosted Image  /  Push Self Hosted Image
0s
Build Self Hosted Image / Push Self Hosted Image
Build Self Hosted Image  /  Push Self Hosted Release Image
0s
Build Self Hosted Image / Push Self Hosted Release Image
Matrix: test-vitest
Push Self Hosted Image  /  Build Self Hosted App
Push Self Hosted Image / Build Self Hosted App
Build App
0s
Build App
Push Self Hosted Image  /  Push Self Hosted Image
Push Self Hosted Image / Push Self Hosted Image
Push Self Hosted Image  /  Push Self Hosted Release Image
Push Self Hosted Image / Push Self Hosted Release Image
Fit to window
Zoom out
Zoom in

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.