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

unhandled error event on mocha test fail #74

Closed
vekexasia opened this issue Sep 25, 2015 · 1 comment
Closed

unhandled error event on mocha test fail #74

vekexasia opened this issue Sep 25, 2015 · 1 comment

Comments

@vekexasia
Copy link

Hello there,

when mocha has an error the code does not generate the coverage report (OK). but i inserted the task in a gulp.watch and every time a testcase goes wrong the process exit with:

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: 1 test failed.

returning me the prompt. I tried with .on('error', function(err){}) but i had no luck. :(

@vekexasia
Copy link
Author

ok never-mind adding .on('error' after .pipe(mocha) solved it :)

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

No branches or pull requests

1 participant