Skip to content

Commit

Permalink
Update docs/index.md
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>
  • Loading branch information
icholy and JoshuaKGoldberg committed Apr 13, 2024
1 parent d986a9a commit a2868fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2218,6 +2218,12 @@ If no custom path was given, and if there are multiple configuration files in th

The `MOCHA_OPTIONS` environment variable may be used to specify command line arguments. These arguments take priority over those found in configuration files.

For example, setting the `bail` and `retries` options:

```bash
$ MOCHA_OPTIONS="--bail --retries 3" mocha
```

### Merging

Mocha will also _merge_ any options found in `package.json` into its run-time configuration. In case of conflict, the priority is:
Expand Down

0 comments on commit a2868fe

Please sign in to comment.