diff --git a/bin/_mocha b/bin/_mocha index 39ad62feed..150095bc0b 100755 --- a/bin/_mocha +++ b/bin/_mocha @@ -347,14 +347,8 @@ if (program.forbidPending) mocha.forbidPending(); // custom compiler support if (program.compilers.length > 0) { - require("util").deprecate(function () {}, [ - "`--compilers` is likely to be replaced in a future version of Mocha.", - "Instead use `--require` to load the compiler and add your file extension(s) to your filepath globs.", - "To glob for multiple file extensions, \"quote\" the path and use `@(one|the-other)`, e.g. \"test/**/*.spec.@(js|coffee)\"" - ] - .concat(program.watch ? ["With `--watch`, also add the extensions through `--watch-extensions`"] : []) - .join("\n") - )() + require('util').deprecate(function () {}, + '"--compilers" will be removed in a future version of Mocha; see https://git.io/vdGQW for more info')(); } var extensions = ['js']; program.compilers.forEach(function (c) {