You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(workflows-shared): fix always-truthy .filter() in vi.waitUntil calls
Two waitForEvent tests used .filter() (returns Array, always truthy)
inside vi.waitUntil callbacks instead of .some() (returns boolean).
This made the waits resolve immediately on the first poll without
actually checking whether the expected events had been logged.
- Replace .filter() with .some() so vi.waitUntil actually polls
- Use === instead of == for strict equality
- Add { expect } from test context and real assertions verifying
WAIT_START and WORKFLOW_SUCCESS events are present in the logs
- Remove the eslint-disable jest/expect-expect comments since the
tests now contain proper assertions
0 commit comments