• Robert Knight's avatar
    Revert mocha to v7.0.1 · a851440a
    Robert Knight authored
    In mocha >= 7.1.0, exceptions thrown in test hooks (eg. a `beforeEach`
    hook) cause the tests to hang without printing any useful exception
    details.
    
    From my notes in a Slack investion:
    
    > The karma-mocha package is responsible for running mocha by calling
    > mocha.setup() before the test modules are evaluated and then mocha.run()
    > after they are evaluated to actually run the tests, as well as listening
    > for test events from Mocha’s “runner” and reporting them back to Karma.
    > When the beforeEach hook fails, the runner emits a “fail” event which
    > karma-mocha receives. karma-mocha then attempts to emit a “test end”
    > event and that ends up triggering an exception in a call to
    > test.retriedTest() in code which was added in
    > https://github.com/mochajs/mocha/pull/4181/files.
    
    Until this issue is resolved, pin mocha to a version that doesn't
    trigger this problem.
    a851440a
Name
Last commit
Last update
.github Loading commit data...
bin Loading commit data...
docs Loading commit data...
embedding-examples Loading commit data...
images Loading commit data...
scripts Loading commit data...
src Loading commit data...
.babelrc Loading commit data...
.dockerignore Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.npmrc Loading commit data...
.prettierignore Loading commit data...
.prettierrc Loading commit data...
.python-version Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT Loading commit data...
Dockerfile Loading commit data...
Jenkinsfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
package.json Loading commit data...
requirements-dev.in Loading commit data...
tox.ini Loading commit data...
yarn.lock Loading commit data...