Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(mocha): handle failures inside hooks #6753

Merged
merged 6 commits into from
Dec 6, 2022
Merged

fix(mocha): handle failures inside hooks #6753

merged 6 commits into from
Dec 6, 2022

Conversation

davidfirst
Copy link
Member

Until now, failure during hooks, such as before() was ending with code 0 (success).
This PR registers to an event on Mocha that catches these errors and report them correctly to the tester.

GiladShoham
GiladShoham previously approved these changes Dec 6, 2022
@davidfirst davidfirst enabled auto-merge (squash) December 6, 2022 02:14
@davidfirst davidfirst merged commit f23a7d4 into master Dec 6, 2022
@davidfirst davidfirst deleted the mocha-hooks branch December 6, 2022 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants