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 has been 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':
Is this something maintainers would be willing to accept a PR on?
Thanks!
The text was updated successfully, but these errors were encountered:
samouri
changed the title
Karma-mocha adapter swallows failures that occur after test complete
adapter.js swallows failures that occur after test complete
Apr 28, 2021
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):
This code branch needs to call
karma.report
in the case oftest.type === 'test'
:karma-mocha/src/adapter.js
Lines 164 to 171 in 537ef7b
Is this something maintainers would be willing to accept a PR on?
Thanks!
The text was updated successfully, but these errors were encountered: