jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

Fix try/catch on Jasmine 2 so that it works again #381

Closed mcmire closed 9 years ago

mcmire commented 9 years ago

In Jasmine 1, you can toggle whether Jasmine catches exceptions by setting Jasmine.CATCH_EXCEPTIONS.

In Jasmine 2, this option has moved to the jasmine.Env object, and instead of setting a property, you call the function catchExceptions.

jejacks0n commented 9 years ago

:+1: Thanks Elliot. =) Ignore the failing specs, istanbul changed something in their output.

jejacks0n commented 9 years ago

fwiw, I wish mocha had this capability too.

mcmire commented 9 years ago

Yeah, it's pretty useful!