Refactor ConfigContext hooks

This commit is contained in:
2025-11-15 01:02:15 +01:00
parent ad772a05ce
commit 6565be3676
7 changed files with 58 additions and 71 deletions

View File

@@ -48,8 +48,8 @@ vi.mock('@/lib/healthService', () => ({
})),
}))
// Mock the ConfigContext hooks
vi.mock('@/contexts/ConfigContext', () => ({
// Mock the ConfigContext helper hooks
vi.mock('@/hooks/useConfig', () => ({
useInstanceDefaults: () => ({
autoRestart: true,
maxRestarts: 3,