Mocha: HTML Reporter crashes when an error is thrown in a beforeEach hook

Created on 1 Mar 2016  路  3Comments  路  Source: mochajs/mocha

It appears that the HTML reporter in 2.4.x crashes when an error is thrown in a beforeEach hook. This may effect other hooks (afterEach, before, after) as well. If I swap mocha out for version 2.3.x, everything works as expected.

For a repro, please see this SAP test repo. Clone, start up your favorite http server (e.g. http-server), and hit index.html from your browser.

Chrome 48
Node 4.2.2
NPM 3.3.12

confirmed-bug

Most helpful comment

This was fixed in #2115 but was not published :sob:

All 3 comments

This was fixed in #2115 but was not published :sob:

Merged PR, closing issue

Thank you!

Was this page helpful?
0 / 5 - 0 ratings