Skip to content

Commit

Permalink
Documentation update for #3753
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain STEPHANT committed Feb 21, 2019
1 parent 444ed5b commit 4cb8c5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/index.md
Expand Up @@ -1628,6 +1628,7 @@ In addition to supporting the legacy [`mocha.opts`](#mochaopts) run-control form
- **JavaScript**: Create a `.mocharc.js` in your project's root directory, and export an object (`module.exports = {/* ... */}`) containing your configuration.
- **YAML**: Create a `.mocharc.yaml` (or `.mocharc.yml`) in your project's root directory.
- **JSON**: Create a `.mocharc.json` in your project's root directory. Comments — while not valid JSON — are allowed in this file, and will be ignored by Mocha.
- **[JSON5](https://json5.org/)**: Create a `.mocharc.jsonc` (or `.mocharc.json5`) in your project's root directory.
- **`package.json`**: Create a `mocha` property in your project's `package.json`.

Mocha suggests using one of the above strategies for configuration instead of the legacy `mocha.opts` format.
Expand All @@ -1649,6 +1650,8 @@ If no custom path was given, and if there are multiple configuration files in th
1. `.mocharc.js`
1. `.mocharc.yaml`
1. `.mocharc.yml`
1. `.mocharc.jsonc`
1. `.mocharc.json5`
1. `.mocharc.json`

### Merging
Expand Down

0 comments on commit 4cb8c5a

Please sign in to comment.