theintern / intern

A next-generation code testing stack for JavaScript.
https://theintern.io/
Other
4.36k stars 310 forks source link

Serialize events #1053

Closed rhpijnacker closed 4 years ago

rhpijnacker commented 4 years ago

Individual calls to emit(<event>) currently start a new asynchronous promise chain. In the intern-cucumber plugin, this causes overlapping handling of the events, since the suiteEnd handling is not yet finished before the new suiteStart event is triggered. This problem is easily fixed by chaining this suiteStart event at the end of the suiteEnd chain.

rhpijnacker commented 4 years ago

PR to the wrong branch... :o ... sorry