Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Catch silent failures in Jasmine
window.onerror = function() {
var args = arguments;
describe('Test Suite:', function() {
it('May have skipped tests', function() {
expect(args).toEqual([]);
});
});
};
@MichaelKuhinica

This comment has been minimized.

Copy link

commented Jun 15, 2016

Verry useful. I woul'd love it to print the entire stack trace, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.