Created
October 18, 2012 12:51
-
-
Save mattyod/3911612 to your computer and use it in GitHub Desktop.
Catch silent failures in Jasmine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onerror = function() { | |
var args = arguments; | |
describe('Test Suite:', function() { | |
it('May have skipped tests', function() { | |
expect(args).toEqual([]); | |
}); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Verry useful. I woul'd love it to print the entire stack trace, though.