Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

remove misinformation about using --require and hooks

Christopher Hiller0f0180f5224c
diff --git a/index.md b/index.md
index b83e0937..3839636e 100644
--- a/index.md
+++ b/index.md
@@ -321,8 +321,6 @@ beforeEach(function() {
});
```
-> This is typically done in Node by placing your hook(s) in a `.js` module, and using the `--require /path/to/module` option on the command-line.
-
### Delayed Root Suite
If you need to perform asynchronous operations before any of your suites are run, you may delay the root suite. Run `mocha` with the `--delay` flag. This will attach a special callback function, `run()`, to the global context: