testomatio-reporter-cli 2.9.4 → 2.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testomatio-reporter-cli",
3
- "version": "2.9.4",
3
+ "version": "2.9.5",
4
4
  "description": "Yarn Berry compatible standalone CLI for @testomatio/reporter",
5
5
  "type": "module",
6
6
  "bin": {
@@ -113,7 +113,7 @@ function CodeceptReporter(config) {
113
113
  event.dispatcher.on(event.workers.after, () => {
114
114
  recorder.add('Finishing run', async () => {
115
115
  await finalizeRun('workers.after');
116
- });
116
+ }, true);
117
117
  });
118
118
 
119
119
  // Listening to events
@@ -213,11 +213,9 @@ function CodeceptReporter(config) {
213
213
  });
214
214
 
215
215
  event.dispatcher.on(event.all.after, () => {
216
- setImmediate(() => {
217
- finalizeRun('all.after').catch(err => {
218
- debug('Error finalizing run:', err);
219
- });
220
- });
216
+ recorder.add('Finishing run', async () => {
217
+ await finalizeRun('all.after');
218
+ }, true);
221
219
  });
222
220
 
223
221
  event.dispatcher.on(event.test.skipped, test => {