From e6c1c8fd402c761485dd01bbe079c350702107e8 Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Tue, 9 Jan 2024 16:07:51 +0100 Subject: [PATCH] fix jest mocks --- client/src/components/TagsMultiselect/StatelessTags.test.js | 2 +- client/src/components/Workflow/Editor/Attributes.test.js | 2 +- client/src/components/Workflow/WorkflowList.test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/components/TagsMultiselect/StatelessTags.test.js b/client/src/components/TagsMultiselect/StatelessTags.test.js index cb2c2db73b1..09b0226b61b 100644 --- a/client/src/components/TagsMultiselect/StatelessTags.test.js +++ b/client/src/components/TagsMultiselect/StatelessTags.test.js @@ -18,7 +18,7 @@ const mountWithProps = (props) => { }); }; -jest.mock("composables/user"); +jest.mock("@/stores/userTagsStore"); const addLocalTagMock = jest.fn((tag) => tag); useUserTagsStore.mockReturnValue({ userTags: computed(() => autocompleteTags), diff --git a/client/src/components/Workflow/Editor/Attributes.test.js b/client/src/components/Workflow/Editor/Attributes.test.js index af85f253e77..2f477bca6b9 100644 --- a/client/src/components/Workflow/Editor/Attributes.test.js +++ b/client/src/components/Workflow/Editor/Attributes.test.js @@ -17,7 +17,7 @@ const TEST_VERSIONS = [ ]; const autocompleteTags = ["#named_uer_tag", "abc", "my_tag"]; -jest.mock("composables/user"); +jest.mock("@/stores/userTagsStore"); useUserTagsStore.mockReturnValue({ userTags: computed(() => autocompleteTags), addLocalTag: jest.fn(), diff --git a/client/src/components/Workflow/WorkflowList.test.js b/client/src/components/Workflow/WorkflowList.test.js index 7bdd4537e4b..4b07236eb09 100644 --- a/client/src/components/Workflow/WorkflowList.test.js +++ b/client/src/components/Workflow/WorkflowList.test.js @@ -17,7 +17,7 @@ const localVue = getLocalVue(); localVue.use(PiniaVuePlugin); const autocompleteTags = ["#named_user_tags", "abc", "my_tag"]; -jest.mock("composables/user"); +jest.mock("@/stores/userTagsStore"); useUserTagsStore.mockReturnValue({ userTags: computed(() => autocompleteTags), addLocalTag: jest.fn(),