Skip to content

Commit 6262d0e

Browse files
committed
refactor(tests): extract callHandler helper for messageHandler tests
Replaces ~30 instances of `vi.fn() + messageHandler + setTimeout(50)` with `await callHandler(msg)`. Faster (no 50ms wait per call), more accurate (awaits the actual sendResponse instead of guessing), and catches handlers that fail to respond. Also tightens one syncResolveConflict assertion to verify the exact GitHub server timestamp, locking in the 8d4b903 fix.
1 parent 8d4b903 commit 6262d0e

1 file changed

Lines changed: 179 additions & 403 deletions

File tree

0 commit comments

Comments
 (0)