Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(desktop): r3-l1 type deep-link toast assertions

Josué4d78723cc3bf
diff --git a/desktop-app/ui/src/__tests__/App.deepLinks.test.tsx b/desktop-app/ui/src/__tests__/App.deepLinks.test.tsx
index 0b6b8355c..5ad5a6c31 100644
--- a/desktop-app/ui/src/__tests__/App.deepLinks.test.tsx
+++ b/desktop-app/ui/src/__tests__/App.deepLinks.test.tsx
@@ -824,9 +824,9 @@ describe('App deep-link orchestration', () => {
})
await waitFor(() => expect(currentController.pushToast).toHaveBeenCalledTimes(2))
- const nativeMountFailures = currentController.pushToast.mock.calls.filter(
- ([message, tone]) => message === 'native mount failed' && tone === 'error'
- )
+ const nativeMountFailures = vi
+ .mocked(currentController.pushToast)
+ .mock.calls.filter(([message, tone]) => message === 'native mount failed' && tone === 'error')
expect(nativeMountFailures).toHaveLength(1)
expect(currentController.pushToast).toHaveBeenCalledWith(
expect.stringContaining('you switched teams'),