diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-05-05 16:47:29 +0000 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-05-05 16:47:29 +0000 |
commit | 368c36227c6847fe11e3fa31b2a319964a424b6d (patch) | |
tree | 8f66cf92edb80bd363b908b3c6cee2413a44685e | |
parent | b9a1b0d1047c378fe1fec4fe5f05ba1d42a434b4 (diff) | |
download | gitlab-ce-catch-and-log-all-errors-test_bundle.tar.gz |
Add catch all errors log to test_bundle.jscatch-and-log-all-errors-test_bundle
-rw-r--r-- | spec/javascripts/test_bundle.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/javascripts/test_bundle.js b/spec/javascripts/test_bundle.js index 07dc51a7815..4480fdfc54d 100644 --- a/spec/javascripts/test_bundle.js +++ b/spec/javascripts/test_bundle.js @@ -9,6 +9,8 @@ require('~/commons/index.js'); window.$ = window.jQuery = require('jquery'); window._ = require('underscore'); +window.addEventListener('error', console.error); + // stub expected globals window.gl = window.gl || {}; window.gl.TEST_HOST = 'http://test.host'; |