You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 28, 2023. It is now read-only.
summary
As rarely used as it is, Mocha currently supports marking a test as failed after it has already completed.
As an example, here is a unit test from mocha's own suite (src):
describe('fail the test from the "after each" hook',function(){it('should fail',function(){// but not here });afterEach(function(){this.test.error(newError('failing from after each'));});});
This code branch needs to call karma.report in the case of test.type === 'test':