Repository navigation
Commit ad704c4
fix(workers): deserialize step events before emitting to master process
Step events (started, finished, passed, failed) were emitted as raw
plain objects from IPC serialization. Plugins listening to these events
received objects without Step class methods (toString, toCliStyled),
causing [object Object] in reporter output.
Apply the same deserialization pattern already used for test events
(deserializeTest) — wrap message.data in a Step instance via
Object.assign(new Step(data.title), data).
Ref: testomatio/e2e-tests#151
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 4461316 commit ad704c4
1 file changed
Lines changed: 23 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| 107 | + | |
| 108 | + | |
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
| |||
706 | 709 | | |
707 | 710 | | |
708 | 711 | | |
709 | | - | |
710 | | - | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
711 | 717 | | |
712 | 718 | | |
713 | | - | |
714 | | - | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
715 | 724 | | |
716 | 725 | | |
717 | | - | |
718 | | - | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
719 | 731 | | |
720 | 732 | | |
721 | | - | |
722 | | - | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
723 | 738 | | |
724 | 739 | | |
725 | 740 | | |
| |||
0 commit comments