Also run coverage with node: current (#7479)

This commit is contained in:
Daniel Tschinder 2018-03-03 18:45:34 +01:00 committed by GitHub
parent 81532103da
commit 785131d8e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,7 @@ switch(env) {
envOpts.debug = true;
// fall-through
case "test":
case "cov":
envOpts.targets = {
node: "current"
};
@ -39,7 +40,7 @@ const config = {
};
// we need to do this as long as we do not test everything from source
if (process.env.BABEL_ENV === "cov") {
if (env === "cov") {
config.auxiliaryCommentBefore = "istanbul ignore next";
config.plugins.push("babel-plugin-istanbul");
}