Skip to content

armgit / mocha

Public Imported from GitHub
0

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

update docs for the glob

Outsiderf687d2b0fb2e
diff --git a/docs/index.md b/docs/index.md
index 86b53b70..214a71ed 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -1272,7 +1272,7 @@ $ mocha --reporter list --growl
## The `test/` Directory
-By default, `mocha` looks for the glob `./test/*.js` and `./test/*.coffee`, so you may want to put your tests in `test/` folder.
+By default, `mocha` looks for the glob `./test/*.js`, so you may want to put your tests in `test/` folder. If you want to include sub directories, use `--recursive`, because of `./test/*.js` is only matched with files which in the first depth of `test` directory and `./test/**/*.js` is only matched with files which in the second depth of `test` directory.
## Editor Plugins