test: remove any type from UsageLogsTable test ComponentInstance

- Replace `events: any[]` with properly typed `MockEvent[]`
- Define MockEvent interface matching the test data structure
- Improve type safety for event testing

Part of Phase 2 - Quick wins (1 instance removed)
This commit is contained in:
Johnpaul
2026-01-21 02:45:44 +01:00
parent ab1a19bcee
commit ca4fe3fd69

View File

@@ -16,10 +16,17 @@ import { EventType } from '@/services/customerEventsService'
import UsageLogsTable from './UsageLogsTable.vue'
interface MockEvent {
event_id: string
event_type: string
params: Record<string, unknown>
createdAt: string
}
type ComponentInstance = InstanceType<typeof UsageLogsTable> & {
loading: boolean
error: string | null
events: any[]
events: MockEvent[]
pagination: {
page: number
limit: number