• Robert Knight's avatar
    Ensure that the test run fails if an uncaught exception occurs · d1b33dad
    Robert Knight authored
    Due to an issue with the interaction between mocha and karma-mocha [1],
    uncaught exceptions or promise rejections that occur in between tests
    can cause the test run to stop immediately yet incorrectly report that
    all tests executed succesfully and hence CI runs / Jenkins builds
    incorrectly report their status.
    
    This commit works around the issue until the problem is resolved in
    mocha / karma-mocha by adding an `afterEach` hook which will re-throw
    any uncaught exceptions and ensure that mocha notices them and reports
    the failure correctly to Karma.
    
    [1] See comments on https://github.com/hypothesis/client/issues/2249
    d1b33dad
Name
Last commit
Last update
..
components Loading commit data...
services Loading commit data...
store Loading commit data...
test Loading commit data...
util Loading commit data...
cross-origin-rpc.js Loading commit data...
ga.js Loading commit data...
get-api-url.js Loading commit data...
host-config.js Loading commit data...
icons.js Loading commit data...
index.js Loading commit data...
markdown-commands.js Loading commit data...
media-embedder.js Loading commit data...
render-markdown.js Loading commit data...
search-client.js Loading commit data...
service-config.js Loading commit data...
ui-constants.js Loading commit data...
websocket.js Loading commit data...