frontend: fix strict production build typing

This commit is contained in:
archipelago
2026-06-11 01:30:49 -04:00
parent f818f1dcc1
commit c79afa9541
8 changed files with 34 additions and 12 deletions
@@ -73,7 +73,7 @@ describe('Web5ConnectedNodes', () => {
messageState.loadingMessages.value = true
const wrapper = mount(Web5ConnectedNodes)
wrapper.vm.nodesContainerTab = 'messages'
;(wrapper.vm as unknown as { nodesContainerTab: string }).nodesContainerTab = 'messages'
await wrapper.vm.$nextTick()
expect(wrapper.text()).toContain('Existing message')
@@ -49,7 +49,7 @@ describe('Web5Federation', () => {
nodes: [{ status: 'online' }, { status: 'offline' }],
pending_requests: [{}],
})
vi.mocked(rpcClient.getNodeDid).mockResolvedValueOnce({ did: 'did:key:node' })
vi.mocked(rpcClient.getNodeDid).mockResolvedValueOnce({ did: 'did:key:node', pubkey: 'node-pubkey' })
const wrapper = mountFederation()
await flushPromises()
@@ -60,7 +60,7 @@ describe('Web5Federation', () => {
const pending = deferred<{ nodes: []; pending_requests: [] }>()
vi.mocked(rpcClient.call).mockReturnValueOnce(pending.promise)
vi.mocked(rpcClient.getNodeDid).mockResolvedValueOnce({ did: 'did:key:node' })
vi.mocked(rpcClient.getNodeDid).mockResolvedValueOnce({ did: 'did:key:node', pubkey: 'node-pubkey' })
const refresh = (wrapper.vm as unknown as { loadFederationSummary: () => Promise<void> }).loadFederationSummary()
await wrapper.vm.$nextTick()