☕️ Classic, reliable, trusted test framework for Node.js and the browser
Ticket #796 - Document wild card support for --global
Oscar Godsonf9713bb9a3f3
diff --git a/index.md b/index.mdindex 412b90ed..c043f6b5 100644--- a/index.md+++ b/index.md@@ -1,4 +1,3 @@-Mocha is a feature-rich JavaScript test framework running on [node](http://nodejs.org) and the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases. Hosted on [GitHub](http://github.com/visionmedia/mocha).<h2 id="features">Features</h2>@@ -307,7 +306,7 @@ Testing asynchronous code with Mocha could not be simpler! Simply invoke the cal<h3 id="globals-option">--globals <names></h3>- Accepts a comma-delimited list of accepted global variable names. For example suppose your app deliberately exposes a global named `app` and `YUI`, you may want to add `--globals app,YUI`.+ Accepts a comma-delimited list of accepted global variable names. For example, suppose your app deliberately exposes a global named `app` and `YUI`, you may want to add `--globals app,YUI`. It also accepts wildcards. You could do `--globals '*bar'` and it would match `foobar`, `barbar`, etc. You can also simply pass in `'*'` to ignore all globals.<h3 id="ignore-leaks-option">--check-leaks</h3>