We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48a8786 commit 3801e20Copy full SHA for 3801e20
index.js
@@ -43,7 +43,17 @@ function createExitHarness (conf) {
43
if (conf.exit === false) return harness;
44
if (!canEmitExit || !canExit) return harness;
45
46
+ var _error;
47
+
48
+ process.on('uncaughtException', function (err) {
49
+ _error = err
50
+ })
51
52
process.on('exit', function (code) {
53
+ if (_error) {
54
+ return
55
+ }
56
57
if (!ended) {
58
for (var i = 0; i < harness._tests.length; i++) {
59
var t = harness._tests[i];
0 commit comments