diff --git a/client/src/components/FilesDialog/FilesDialog.test.ts b/client/src/components/FilesDialog/FilesDialog.test.ts index adee6564cbfe..d826f977a5aa 100644 --- a/client/src/components/FilesDialog/FilesDialog.test.ts +++ b/client/src/components/FilesDialog/FilesDialog.test.ts @@ -1,3 +1,4 @@ +import { createTestingPinia } from "@pinia/testing"; import { mount, Wrapper } from "@vue/test-utils"; import flushPromises from "flush-promises"; import { getLocalVue } from "tests/jest/helpers"; @@ -98,9 +99,11 @@ const initComponent = async (props: { multiple: boolean; mode?: string }) => { mockFetcher.path("/api/remote_files/plugins").method("get").mock({ data: rootResponse }); mockFetcher.path("/api/remote_files").method("get").mock(getMockedBrowseResponse); + const testingPinia = createTestingPinia({ stubActions: false }); const wrapper = mount(FilesDialog, { localVue, propsData: { ...props, modalStatic: true }, + pinia: testingPinia, }); await flushPromises();