Skip to content

Commit

Permalink
update docs with globbing and shell expansion details; closes mochajs…
Browse files Browse the repository at this point in the history
  • Loading branch information
akrawchyk committed Apr 23, 2018
1 parent 5fc5845 commit 39b3300
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1275,6 +1275,18 @@ $ mocha --reporter list --growl

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`, since `./test/*.js` only matches files in the first level of `test` and `./test/**/*.js` only matches files in the second level of `test`.

To configure where `mocha` looks for tests, you may pass your own glob:

```
$ mocha ./spec/*.js
```

If you use shell expansion for this, you must wrap your glob pattern in double quotes (note, using the `--recursive` flag here is useless):

```
$ mocha "./spec/**/*.js"
```

## Editor Plugins

The following editor-related packages are available:
Expand Down

0 comments on commit 39b3300

Please sign in to comment.