Skip to content

Instantly share code, notes, and snippets.

@mattyod
Created October 18, 2012 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattyod/3911612 to your computer and use it in GitHub Desktop.
Save mattyod/3911612 to your computer and use it in GitHub Desktop.
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
Copy link

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