• 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
..
integration Loading commit data...
annotation-fixtures.js Loading commit data...
bootstrap.js Loading commit data...
cross-origin-rpc-test.js Loading commit data...
fake-redux-store.js Loading commit data...
get-api-url-test.js Loading commit data...
group-fixtures.js Loading commit data...
host-config-test.js Loading commit data...
markdown-commands-test.js Loading commit data...
media-embedder-test.js Loading commit data...
render-markdown-test.js Loading commit data...
search-client-test.js Loading commit data...
service-config-test.js Loading commit data...
websocket-test.js Loading commit data...