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 May 1, 2018
1 parent 1606f35 commit 7680a7b
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 7680a7b

Please sign in to comment.