Skip to main content

setTestDeps

FitFileViewer - API Documentation v29.4.0


FitFileViewer - API Documentation / utils/files/export/exportUtils / __setTestDeps

Function: __setTestDeps()

__setTestDeps(overrides: Partial<{ showNotification: (message: string, type?: "error" | "info" | "success" | "warning", duration?: number, options?: NotificationOptions) => Promise<void>; detectCurrentTheme: () => string; }>): void

Defined in: utils/files/export/exportUtils.js:79

Test-only: override internal dependencies (notifications, theme resolver)

Parameters​

overrides​

Partial<{ showNotification: (message: string, type?: "error" | "info" | "success" | "warning", duration?: number, options?: NotificationOptions) => Promise<void>; detectCurrentTheme: () => string; }>

Returns​

void