☕️ Classic, reliable, trusted test framework for Node.js and the browser
docs
Tj Holowaychuk4017398acdd9
diff --git a/index.md b/index.mdindex 1948ae0e..2d162b4c 100644--- a/index.md+++ b/index.md@@ -9,6 +9,7 @@ Mocha is a feature-rich JavaScript test framework running on [node](http://nodej- auto-detects and disables coloring for non-ttys- maps uncaught exceptions to the correct test case- async test timeout support+ - test-specific timeouts- growl notification support- reports test durations- highlights slow tests@@ -400,6 +401,15 @@ Testing asynchronous code with Mocha could not be simpler! Simply invoke the cal$ mocha --reporter list --growl+## Test specific timeouts++ To compliment the global `--timeout` option, you may also specific test-specific timeouts via `this.timeout()`, or disable the timeout all-together with `this.timeout(0)`.++ it('should take less than 500ms', function(done){+ this.timeout(500);+ setTimeout(done, 300);+ })+## Best practices### test/*