Skip to content

armgit / mocha

Public Imported from GitHub
0

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

more --require docs

TJ Holowaychukaa0bc2675f11
diff --git a/index.md b/index.md
index ad4670f0..da3b6963 100644
--- a/index.md
+++ b/index.md
@@ -194,7 +194,7 @@ Testing asynchronous code with Mocha could not be simpler! Simply invoke the cal
### -r, --require <name>
- The `--require` option is useful for libraries such as [should.js](http://github.com/visionmedia/should.js), so you may simply `--require should` instead of manually invoking `require('should')` within each test file.
+ The `--require` option is useful for libraries such as [should.js](http://github.com/visionmedia/should.js), so you may simply `--require should` instead of manually invoking `require('should')` within each test file. Note that this works well for `should` as it augments `Object.prototype`, however if you wish to access a module's exports you will have to require them, for example `var should = require('should')`.
### -u, --ui <name>