Fix health service tests

This commit is contained in:
2025-10-26 19:48:07 +01:00
parent 75e7b628ca
commit 777e07752b
4 changed files with 61 additions and 5 deletions

View File

@@ -7,7 +7,12 @@ import { BackendType } from '@/types/instance'
// Mock the health hook since we're not testing health logic here
vi.mock('@/hooks/useInstanceHealth', () => ({
useInstanceHealth: vi.fn(() => ({ status: 'ok', lastChecked: new Date() }))
useInstanceHealth: vi.fn(() => ({
state: 'ready',
instanceStatus: 'running',
lastChecked: new Date(),
source: 'http'
}))
}))
describe('InstanceCard - Instance Actions and State', () => {