-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Exceptions in hooks are silent #150
Comments
seems ok to me: describe('something', function(){
beforeEach(function(){
throw new Error('test')
})
it('should something', function(){
})
})
|
sorry I should have stated that this was using the browser version. On Fri, Dec 16, 2011 at 5:01 PM, TJ Holowaychuk
|
ah, gotcha yeah i can reproduce that |
thanks for the report! |
-- this doesn't appear to be in the latest mocha.js ? additionally - it seems to junk the original expection. What was a "object is not a function" throws up "Uncaught TypeError: Cannot read property 'stack' of undefined" in mocha |
hmm i'll reopen and take a look |
closing, i'll add an issue for this specifically |
If an exception occurs during a hook (e.g. beforeEach) - it's lost silently - which is difficult to track down where the problem is.
The text was updated successfully, but these errors were encountered: