Closed mcmire closed 9 years ago
In Jasmine 1, you can toggle whether Jasmine catches exceptions by setting Jasmine.CATCH_EXCEPTIONS.
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.
jasmine.Env
catchExceptions
:+1: Thanks Elliot. =) Ignore the failing specs, istanbul changed something in their output.
fwiw, I wish mocha had this capability too.
Yeah, it's pretty useful!
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 functioncatchExceptions
.