Skip to content

Commit

Permalink
Explain why 'mocha.ui()' is needed'
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Scholtes committed Aug 22, 2019
1 parent 1fd64f8 commit 4e7c743
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/cli/watch-run.js
Expand Up @@ -146,9 +146,9 @@ const resetMocha = mocha => {
mocha.unloadFiles();
mocha.suite = mocha.suite.clone();
mocha.suite.ctx = new Context();
// Registers a callback on `mocha.suite` that will expose the globals from the
// DSL (e.g. `describe`). This is necessary because we have assigned a new
// context to the suite.
// Registers a callback on `mocha.suite` that wires new context to the DSL
// (e.g. `describe`) that is exposed as globals when the test files are
// reloaded.
mocha.ui(mocha.options.ui);
};

Expand Down

0 comments on commit 4e7c743

Please sign in to comment.