Skip to content

feat: add useUrgency hook, move logic from firebase into hooks.js, me… #93

feat: add useUrgency hook, move logic from firebase into hooks.js, me…

feat: add useUrgency hook, move logic from firebase into hooks.js, me… #93

Triggered via push September 29, 2024 15:58
Status Failure
Total duration 26s
Artifacts

tests.yml

on: push
Run Tests
18s
Run Tests
Fit to window
Zoom out
Zoom in

Annotations

3 errors
tests/List.test.jsx > List Component > renders the shopping list name, search field, and all list items from the data prop: src/views/List.jsx#L9
Error: [vitest] No "useUrgency" export is defined on the "../src/utils" 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("../src/utils", async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ List2 src/views/List.jsx:9:40 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ updateSimpleMemoComponent node_modules/react-dom/cjs/react-dom.development.js:19454:10 ❯ updateMemoComponent node_modules/react-dom/cjs/react-dom.development.js:19303:14 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21712: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
tests/List.test.jsx > List Component > shows welcome message and AddItems component when no items are present: src/views/List.jsx#L9
Error: [vitest] No "useUrgency" export is defined on the "../src/utils" 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("../src/utils", async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ List2 src/views/List.jsx:9:40 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ updateSimpleMemoComponent node_modules/react-dom/cjs/react-dom.development.js:19454:10 ❯ updateMemoComponent node_modules/react-dom/cjs/react-dom.development.js:19303:14 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21712: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
Run Tests
Process completed with exit code 1.