From 6e5a99ef714d1887405f20047ecaf3b7c5d227be Mon Sep 17 00:00:00 2001 From: archipelago Date: Wed, 15 Jul 2026 06:05:53 -0400 Subject: [PATCH] fix(tests): CloudPeersRefresh mounts Cloud with Pinia (useCloudStore in setup) The cloud tabs rework added useCloudStore() to Cloud.vue's setup; this older test mounted without a Pinia instance and failed the release gate. Co-Authored-By: Claude Fable 5 --- neode-ui/src/views/__tests__/CloudPeersRefresh.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')