• 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
..
annotator Loading commit data...
boot Loading commit data...
images/icons Loading commit data...
shared Loading commit data...
sidebar Loading commit data...
styles Loading commit data...
test-util Loading commit data...
types Loading commit data...
.eslintrc Loading commit data...
karma.config.js Loading commit data...
tsconfig.json Loading commit data...