diff --git a/client/src/components/Common/FilterMenu.test.ts b/client/src/components/Common/FilterMenu.test.ts index bab978663fcb..b9ba3db65b3b 100644 --- a/client/src/components/Common/FilterMenu.test.ts +++ b/client/src/components/Common/FilterMenu.test.ts @@ -3,11 +3,14 @@ import { getLocalVue } from "@tests/jest/helpers"; import { mount, type Wrapper } from "@vue/test-utils"; import { HistoryFilters } from "@/components/History/HistoryFilters"; +import { setupSelectableMock } from "@/components/ObjectStore/mockServices"; import { WorkflowFilters } from "@/components/Workflow/List/WorkflowFilters"; import Filtering, { compare, contains, equals, toBool, toDate } from "@/utils/filtering"; import FilterMenu from "./FilterMenu.vue"; +setupSelectableMock(); + const localVue = getLocalVue(); const options = [ { text: "Any", value: "any" }, diff --git a/client/src/components/Form/Elements/FormDirectory.test.js b/client/src/components/Form/Elements/FormDirectory.test.js index 1504e1133d2a..3aef7b6b052c 100644 --- a/client/src/components/Form/Elements/FormDirectory.test.js +++ b/client/src/components/Form/Elements/FormDirectory.test.js @@ -2,6 +2,7 @@ import { mount } from "@vue/test-utils"; import flushPromises from "flush-promises"; import { createPinia } from "pinia"; import { getLocalVue } from "tests/jest/helpers"; +import { setupMockConfig } from "tests/jest/mockConfig"; import { useServerMock } from "@/api/client/__mocks__"; import { rootResponse } from "@/components/FilesDialog/testingData"; @@ -13,6 +14,7 @@ const localVue = getLocalVue(); jest.mock("app"); const { server, http } = useServerMock(); +setupMockConfig({}); describe("DirectoryPathEditableBreadcrumb", () => { let wrapper; @@ -56,10 +58,6 @@ describe("DirectoryPathEditableBreadcrumb", () => { server.use( http.get("/api/remote_files/plugins", ({ response }) => { return response(200).json(rootResponse); - }), - - http.get("/api/configuration", ({ response }) => { - return response(200).json({}); }) ); diff --git a/client/src/components/Grid/GridList.test.js b/client/src/components/Grid/GridList.test.js index 3abe0006a669..2639156b6bac 100644 --- a/client/src/components/Grid/GridList.test.js +++ b/client/src/components/Grid/GridList.test.js @@ -11,8 +11,6 @@ import MountTarget from "./GridList.vue"; jest.useFakeTimers(); -jest.mock("composables/config"); - setupMockConfig({ disabled: false, enabled: true }); jest.mock("vue-router/composables"); diff --git a/client/src/components/HistoryImport.test.js b/client/src/components/HistoryImport.test.js index 120a0c07306e..3265f2737c2f 100644 --- a/client/src/components/HistoryImport.test.js +++ b/client/src/components/HistoryImport.test.js @@ -1,6 +1,7 @@ import { mount } from "@vue/test-utils"; import flushPromises from "flush-promises"; import { getLocalVue, wait } from "tests/jest/helpers"; +import VueRouter from "vue-router"; import { useServerMock } from "@/api/client/__mocks__"; import { waitOnJob } from "@/components/JobStates/wait"; @@ -8,6 +9,9 @@ import { waitOnJob } from "@/components/JobStates/wait"; import HistoryImport from "./HistoryImport.vue"; const localVue = getLocalVue(); +localVue.use(VueRouter); +const router = new VueRouter(); + const TEST_JOB_ID = "job123789"; const TEST_SOURCE_URL = "http://galaxy.example/import"; @@ -43,6 +47,7 @@ describe("HistoryImport.vue", () => { wrapper = mount(HistoryImport, { propsData: {}, localVue, + router, }); await flushPromises(); }); diff --git a/client/src/components/JobInformation/JobOutputs.vue b/client/src/components/JobInformation/JobOutputs.vue index 841e08f67761..494690707c07 100644 --- a/client/src/components/JobInformation/JobOutputs.vue +++ b/client/src/components/JobInformation/JobOutputs.vue @@ -26,9 +26,9 @@