Skip to content

[autopilot] skills: await extension event listeners directly in tests - #180

Merged
wdm0006 merged 1 commit into
mainfrom
autopilot/skills-1793891342
Nov 7, 2026
Merged

wdm0006 merged 1 commit into
mainfrom
autopilot/skills-1793891342

Conversation

@wdm0006

@wdm0006 wdm0006 commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Adds a short trap to the MV3 extension skill's mock section: hand-rolled event-trigger helpers call listeners synchronously and discard their promises, so assertions race the handler's async work. Recommends awaiting the registered listener directly, and notes that fake timers also fake setImmediate. Motivated by a recurring pattern of tests that looked deterministic but only passed on microtask timing. Small, scoped to one skill; no registration changes.

@wdm0006
wdm0006 merged commit 36413e5 into main Nov 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant