Skip to content

Implement bookmark button #394

Implement bookmark button

Implement bookmark button #394

Triggered via push December 13, 2024 15:10
Status Failure
Total duration 55s
Artifacts
Frontend Tests
45s
Frontend Tests
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 warning
src/routes/question.test.tsx > QuestionPage > renders delete button for author: frontend/src/components/BookmarkButton.tsx#L30
Error: [vitest] No "useBookmarkQuestion" export is defined on the "@/services/api/programmingForumComponents" 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/api/programmingForumComponents"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ BookmarkButton src/components/BookmarkButton.tsx:30:37 ❯ 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 ❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
Frontend Tests
Process completed with exit code 1.
Frontend Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636