Skip to content

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

TypeScript

test(desktop): honor retained send wait options

Alfredo Lopez8ebfc31f8bd5
diff --git a/desktop-app/ui/src/hooks/domain/__tests__/retainedSendRelease.test.tsx b/desktop-app/ui/src/hooks/domain/__tests__/retainedSendRelease.test.tsx
index 206172220..a85c4f9a1 100644
--- a/desktop-app/ui/src/hooks/domain/__tests__/retainedSendRelease.test.tsx
+++ b/desktop-app/ui/src/hooks/domain/__tests__/retainedSendRelease.test.tsx
@@ -69,8 +69,8 @@ afterEach(() => {
// Real ChatStore-backed effects can exceed Testing Library's 1-second default
// on loaded local/T0 runners. This follows the #958 wiring-timeout contract.
-function waitFor<T>(callback: () => T | Promise<T>) {
- return rtlWaitFor(callback, { timeout: ASYNC_WAIT_TIMEOUT_MS })
+function waitFor<T>(callback: () => T | Promise<T>, options?: Parameters<typeof rtlWaitFor>[1]) {
+ return rtlWaitFor(callback, { timeout: ASYNC_WAIT_TIMEOUT_MS, ...options })
}
const image: ComposerImageAttachment = {