Skip to content

Commit

Permalink
soft deprecate configuration via mocha.opts
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Jul 22, 2019
1 parent 1e6cf3b commit 604d842
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/cli/options.js
Expand Up @@ -230,6 +230,9 @@ const loadMochaOpts = (args = {}) => {
// if there's an exception to catch here, I'm not sure what it is.
// by attaching the `no-opts` arg, we avoid re-parsing of `mocha.opts`.
if (mochaOpts) {
deprecate(
'Configuration via mocha.opts is DEPRECATED and will be removed from a future version of Mocha. Use RC files or package.json instead.'
);
result = parse(parseMochaOpts(mochaOpts));
debug(`${filepath} parsed succesfully`);
}
Expand Down

0 comments on commit 604d842

Please sign in to comment.