Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(control-ui): align stale test fixtures with current API types
Alfredo Lopez16046cec3c6f
diff --git a/control-ui/components/__tests__/GovernedTraceSurface.test.tsx b/control-ui/components/__tests__/GovernedTraceSurface.test.tsxindex d936f52be..97b8e7025 100644--- a/control-ui/components/__tests__/GovernedTraceSurface.test.tsx+++ b/control-ui/components/__tests__/GovernedTraceSurface.test.tsx@@ -5,6 +5,7 @@ import {getInfrastructureCostScopes,getInfrastructureTraceCosts,isTraceCostsUnavailable,+ type InfrastructureCostScopeCatalog,} from '@lib/governedTrace'import { GovernedTraceSurface } from '../GovernedTraceSurface'@@ -203,7 +204,7 @@ function renderSurface(detail = false) {)}-function renderInfrastructureSurface(catalog = COST_SCOPE_CATALOG) {+function renderInfrastructureSurface(catalog: InfrastructureCostScopeCatalog = COST_SCOPE_CATALOG) {mockGetCostScopes.mockResolvedValue(catalog)return render(<GovernedTraceSurface@@ -455,7 +456,7 @@ describe('GovernedTraceSurface', () => {scopes: [{...COST_SCOPE_CATALOG.scopes[0],- availableValuations: ['estimated'] as const,+ availableValuations: ['estimated' as const],billingExportWatermark: null,billingLagHours: null,},diff --git a/control-ui/components/__tests__/RegistryCatalog.test.tsx b/control-ui/components/__tests__/RegistryCatalog.test.tsxindex 4881521eb..fd3f28d50 100644--- a/control-ui/components/__tests__/RegistryCatalog.test.tsx+++ b/control-ui/components/__tests__/RegistryCatalog.test.tsx@@ -235,7 +235,12 @@ describe('RegistryCatalog expansion and actions', () => {it('installs a plugin from the plugins tab', async () => {navigation.pathname = '/marketplace/plugins'mockApiSuccess()- vi.mocked(api.installRecipeFromRegistry).mockResolvedValue({ installed: true })+ vi.mocked(api.installRecipeFromRegistry).mockResolvedValue({+ recipeName: 'market-report',+ registryEntry: 'market-report',+ registryVersion: '1.0.0',+ correlationId: 'test-correlation',+ })render(<RegistryCatalog />)const row = (await screen.findByText('market-report')).closest('tr')!