Jared Smith-Mickelson
Results
3
comments of
Jared Smith-Mickelson
@Rush, thanks for tackling this deficiency in mocha! I'm having trouble with failed assertions in asynchronous code. It seems they prevent finally from running. Is that by design? If you...
``` var assert = require('assert'); var finalizeEach = require('./'); [false, true].forEach((assertionValue) => { describe('finalizeEach should run after', function() { var finalizeDidRun = false; finalizeEach(this, promise => { return promise.finally(() =>...
Exploring further, it seems finalize doesn't run when a wrapped asynchronous test throws an AssertionError rather than calling back with an error. This pattern may be a misuse of mocha,...