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.
Emitting a 'test end' event for a hook is incorrect and leads to an uncaught exception with Mocha >= 7.1.0. A 'hook end' event should be fired instead.
For anyone who finds this issue: Mocha published a workaround for this in v7.1.2.
Depending on what versions of Mocha you intend to support, v6.0.0 of Mocha and newer should allow you pull out these variables instead of hardcoding event names:
Description
Emitting a 'test end' event for a hook is incorrect and leads to an uncaught exception with Mocha >= 7.1.0. A 'hook end' event should be fired instead.
see src/adapter.js
related Mocha issue
The text was updated successfully, but these errors were encountered: