Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

add link to wiki on --compilers deprecation

Christopher Hiller6dd92528528a
diff --git a/bin/_mocha b/bin/_mocha
index fe621e81..7c8478b1 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) {