visionmedia/mocha — pull request #1059 by glenjamin (2013-12-05 14:37:07+00:00)
Title: Ensure process exit code is preserved when using --no-exit

When using --no-exit to wait for the event loop to finish, the exit code gets lost.

This patch ensures that if tests fail, the exit code makes it back to the shell