fix: restore isCloud import and add getServerFeature to test mock

This commit is contained in:
bymyself
2026-03-15 04:58:21 -07:00
parent 66adc95fb6
commit 60d93ab847
2 changed files with 3 additions and 1 deletions

View File

@@ -56,7 +56,8 @@ vi.mock('@/scripts/api', () => ({
apiEventHandlers.delete(event)
}),
clientId: 'test-client',
apiURL: vi.fn((path: string) => `/api${path}`)
apiURL: vi.fn((path: string) => `/api${path}`),
getServerFeature: vi.fn()
}
}))

View File

@@ -3,6 +3,7 @@ import { computed, ref, shallowRef } from 'vue'
import { useNodeProgressText } from '@/composables/node/useNodeProgressText'
import { useConcurrentExecution } from '@/composables/useConcurrentExecution'
import { isCloud } from '@/platform/distribution/types'
import { useTelemetry } from '@/platform/telemetry'
import type { ComfyWorkflow } from '@/platform/workflow/management/stores/workflowStore'
import { useWorkflowStore } from '@/platform/workflow/management/stores/workflowStore'