fix(jest): stabilize artifacts flushing (#4367)

This commit is contained in:
Yaroslav Serhieiev
2024-02-11 14:05:41 +02:00
committed by GitHub
parent 4780130097
commit 90eace2875
+2 -1
View File
@@ -64,7 +64,8 @@ class DetoxCircusEnvironment extends WithEmitter(NodeEnvironment) {
WorkerAssignReporter,
});
this.testEvents.on('*', this._onTestEvent.bind(this));
// Artifacts flushing should be delayed to avoid conflicts with third-party reporters
this.testEvents.on('*', this._onTestEvent.bind(this), 1e6);
}
/** @override */