Skip to content

Enable event dispatcher in workers#5464

Merged
DavertMik merged 14 commits into4.xfrom
bugfix/fix-workers
Mar 5, 2026
Merged

Enable event dispatcher in workers#5464
DavertMik merged 14 commits into4.xfrom
bugfix/fix-workers

Conversation

@DenysKuchma
Copy link
Collaborator

Enable event dispatcher in workers

This allows plugins (e.g., Testomatio reporter) to receive events from workers
by emitting events through both this.emit() and event.dispatcher.emit().

Changes:

  • lib/workers.js: Add event.dispatcher.emit() for all test/step/hook events
  • lib/step/base.js: Add code field to Step.simplify() with serialized toCode() result
  • lib/listener/globalTimeout.js: Use step.code field instead of calling toCode() method

Copy link
Contributor

@DavertMik DavertMik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minimal changes

@DenysKuchma DenysKuchma requested a review from DavertMik March 4, 2026 13:37
@DavertMik DavertMik merged commit 21e066c into 4.x Mar 5, 2026
10 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.

2 participants