We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fd64f8 commit 4e7c743Copy full SHA for 4e7c743
lib/cli/watch-run.js
@@ -146,9 +146,9 @@ const resetMocha = mocha => {
146
mocha.unloadFiles();
147
mocha.suite = mocha.suite.clone();
148
mocha.suite.ctx = new Context();
149
- // Registers a callback on `mocha.suite` that will expose the globals from the
150
- // DSL (e.g. `describe`). This is necessary because we have assigned a new
151
- // 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.
152
mocha.ui(mocha.options.ui);
153
};
154
0 commit comments