Report about throw exception in browser
Trufi opened this issue · comments
Mstislav Zhivodkov commented
If we run test in browser and throw exception:
var test = require('prova');
test('smth', function(t) {
throw new Error();
t.end();
});
Test case does not end and error appears only in browser console, but not in command line.
Azer Koçulu commented
this behavior comes from Tape. I guess prova needs to listen for errors and show it to user. does window.onerror work on all browsers ?
andrej commented
should do:
https://blog.sentry.io/2016/01/04/client-javascript-reporting-window-onerror.html
would be great, if you could add an global error handler.
thanks