Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(desktop-app): r5-m3 type async handoff test callbacks
Josué413705208c53
diff --git a/desktop-app/ui/src/hooks/domain/__tests__/desktopEnvironmentHandoff.test.ts b/desktop-app/ui/src/hooks/domain/__tests__/desktopEnvironmentHandoff.test.tsindex 63fcce59d..64c129a3d 100644--- a/desktop-app/ui/src/hooks/domain/__tests__/desktopEnvironmentHandoff.test.ts+++ b/desktop-app/ui/src/hooks/domain/__tests__/desktopEnvironmentHandoff.test.ts@@ -60,9 +60,11 @@ function createHandler(authTransitioning: booleanisAuthenticated: boolean},- refreshRuntimeConfigState = async () => runtimeConfigModule!.getDesktopRuntimeConfigState(),- logoutForEnvironmentMismatch = vi.fn(async () => undefined),- onSessionNeedsLoad = vi.fn(async () => undefined)+ refreshRuntimeConfigState: () => Promise<+ Awaited<ReturnType<typeof import('../../../../../src/config').getDesktopRuntimeConfigState>>+ > = async () => runtimeConfigModule!.getDesktopRuntimeConfigState(),+ logoutForEnvironmentMismatch: () => Promise<void> = vi.fn(async () => {}),+ onSessionNeedsLoad: () => Promise<void> = vi.fn(async () => {})) {const selectRuntimeConfig = vi.fn(async (optionId: string) => {await runtimeConfigModule!.selectDesktopRuntimeConfigOption(optionId)@@ -150,8 +152,8 @@ describe('Desktop environment handoff concurrency', () => {let busy = falselet isAuthenticated = true- let finishLogout = () => undefined- let reportLogoutStarted = () => undefined+ let finishLogout: () => void = () => {}+ let reportLogoutStarted: () => void = () => {}const logoutStarted = new Promise<void>(resolve => {reportLogoutStarted = resolve})