diff --git a/neode-ui/src/views/__tests__/CloudPeersRefresh.test.ts b/neode-ui/src/views/__tests__/CloudPeersRefresh.test.ts index 2825f23e..ef3a6c3d 100644 --- a/neode-ui/src/views/__tests__/CloudPeersRefresh.test.ts +++ b/neode-ui/src/views/__tests__/CloudPeersRefresh.test.ts @@ -1,4 +1,5 @@ import { flushPromises, mount } from '@vue/test-utils' +import { createPinia } from 'pinia' import { describe, expect, it, vi } from 'vitest' import Cloud from '../Cloud.vue' import { rpcClient } from '@/api/rpc-client' @@ -43,7 +44,7 @@ describe('Cloud peer list', () => { it('keeps peer nodes visible while refresh is pending or fails', async () => { vi.mocked(rpcClient.federationListNodes).mockResolvedValueOnce({ nodes: [makePeer()] }) - const wrapper = mount(Cloud) + const wrapper = mount(Cloud, { global: { plugins: [createPinia()] } }) await flushPromises() expect(wrapper.text()).toContain('Peer Alpha')