Skip to content

Enable event dispatcher in workers#5464

Open
DenysKuchma wants to merge 3 commits into4.xfrom
bugfix/fix-workers
Open

Enable event dispatcher in workers#5464
DenysKuchma wants to merge 3 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

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