feat(UI & API): Manage views in the frontend #39
Annotations
2 errors
frontend/src/stores/project.ts#L66
Error: [vitest] No "fetchProject" export is defined on the "@/services/api" 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("@/services/api", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ VitestMocker.createError node_modules/vitest/dist/chunks/execute.Cjlr2CRw.js:108:19
❯ Object.get node_modules/vitest/dist/chunks/execute.Cjlr2CRw.js:195:22
❯ fetch src/stores/project.ts:66:23
❯ Proxy.startBackendPolling src/stores/project.ts:78:11
❯ Proxy.wrappedAction node_modules/pinia/dist/pinia.mjs:1405:26
❯ src/views/ProjectView.vue:103:22
❯ node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:1550:40
❯ callWithErrorHandling node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:203:19
❯ callWithAsyncErrorHandling node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:210:17
❯ hook.__weh.hook.__weh node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:1530:19
This error originated in "tests/views/ReportBuilderView.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "Renders properly". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
|
The logs for this run have expired and are no longer available.
Loading