Skip to content

Commit

Permalink
add link to wiki on --compilers deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Oct 2, 2017
1 parent 96318e1 commit 6dd9252
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions bin/_mocha
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6dd9252

Please sign in to comment.