From 3f0ffeec2ee0b649cde6f7a430839d30062b0b1c Mon Sep 17 00:00:00 2001 From: juergba Date: Thu, 1 Aug 2019 14:04:52 +0200 Subject: [PATCH] docu update [ci skip] --- docs/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/index.md b/docs/index.md index ab898764c0..18249db1a1 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1061,7 +1061,7 @@ By default, Mocha will search for a config file if `--config` is not specified; ### `--opts ` -> _Updated in v6.0.0; added `--no-opts`._ +> _Deprecated._ Specify a path to [`mocha.opts`](#mochaopts). @@ -1632,14 +1632,14 @@ tests as shown below: > _New in v6.0.0_ -In addition to supporting the legacy [`mocha.opts`](#mochaopts) run-control format, Mocha now supports configuration files, typical of modern command-line tools, in several formats: +In addition to supporting the deprecated [`mocha.opts`](#mochaopts) run-control format, Mocha now supports configuration files, typical of modern command-line tools, in several formats: - **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` (or `.mocharc.jsonc`) in your project's root directory. Comments — while not valid JSON — are allowed in this file, and will be ignored by Mocha. - **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. +Mocha suggests using one of the above strategies for configuration instead of the deprecated `mocha.opts` format. ### Custom Locations @@ -1689,7 +1689,7 @@ Configurations can inherit from other modules using the `extends` keyword. See [ ## `mocha.opts` -> _Updated in v6.0.0; `mocha.opts` is now considered "legacy" — though not yet deprecated — and we recommend using a configuration file instead._ +> _`mocha.opts` file support is DEPRECATED and will be removed from a future version of Mocha. We recommend using a configuration file instead._ Mocha will attempt to load `"./test/mocha.opts"` as a run-control file of sorts.