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.
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 thesuiteEnd
handling is not yet finished before the newsuiteStart
event is triggered. This problem is easily fixed by chaining thissuiteStart
event at the end of thesuiteEnd
chain.