Skip to content

fix(frontend): mock useMessages in WorkflowBuilder unit test#33

Open
LukasHirt wants to merge 1 commit into
mainfrom
fix/workflow-builder-test-mock
Open

fix(frontend): mock useMessages in WorkflowBuilder unit test#33
LukasHirt wants to merge 1 commit into
mainfrom
fix/workflow-builder-test-mock

Conversation

@LukasHirt

Copy link
Copy Markdown
Collaborator

Summary

  • WorkflowBuilder.vue calls useAutomationConnect(), which calls useMessages() from @ownclouders/web-pkg at setup time.
  • tests/unit/WorkflowBuilder.spec.ts mocks @ownclouders/web-pkg but didn't include useMessages, so mounting the component threw and failed the frontend CI job.
  • This is currently failing on main and is inherited by every open PR rebased on top of it.

Test plan

  • pnpm test:unit run passes locally (6 files, 14 tests)
  • CI green on this PR

WorkflowBuilder.vue calls useAutomationConnect(), which calls useMessages()
from @ownclouders/web-pkg at setup time. The test's mock of that module
didn't include useMessages, so mounting the component threw and failed CI.

Signed-off-by: Lukas Hirt <info@hirt.cz>
@LukasHirt
LukasHirt requested a review from a team as a code owner July 24, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant