Skip to content

armgit / mocha

Public Imported from GitHub
0

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

grep

TJ Holowaychuk6b150042f305
diff --git a/index.md b/index.md
index 0eab976f..1663c7e8 100644
--- a/index.md
+++ b/index.md
@@ -350,6 +350,10 @@ Testing asynchronous code with Mocha could not be simpler! Simply invoke the cal
<script src="test.xhr.js"></script>
<script>onload = mocha.run;</script>
+### grep
+
+ The client-side may utilize `--grep` as well, however you use the query-string, for example `?grep=api`.
+
## mocha.opts
Mocha will attempt to load `./test/mocha.opts`, these are concatenated with `process.argv`, though command-line args will take precedence. For example suppose you have the following _mocha.opts_ file: