This repository has been archived by the owner on Dec 28, 2023. It is now read-only.
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.
adapter.js swallows failures that occur after test complete #236
Open
Description
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(new Error('failing from after each'));
});
});
This code branch needs to call karma.report
in the case of test.type === 'test'
:
Lines 164 to 171 in 537ef7b
Is this something maintainers would be willing to accept a PR on?
Thanks!
Metadata
Assignees
Labels
No labels