diff --git a/lib/mocha-clean.js b/lib/mocha-clean.js index 08ea8e16..c9f1b34d 100644 --- a/lib/mocha-clean.js +++ b/lib/mocha-clean.js @@ -8,6 +8,9 @@ const internal = [ '(domain.js:', 'GeneratorFunctionPrototype.next (native)', 'at Generator.next', + /at process\._tickDomainCallback \(.*\)/, + /at emitCloseNT \(net\.js.*\)/, + /at _combinedTickCallback \(internal.*\)/, // node 8.x 'at Promise ()', 'at next (native)', @@ -16,6 +19,7 @@ const internal = [ /node_modules\/.*mocha\//, /node_modules\/.*co\//, /node_modules\/.*co-mocha\//, + /node_modules\/.*supertest\//, ]; // monkey-patch `Runner#fail` to modify stack