Also run coverage with node: current (#7479)
This commit is contained in:
parent
81532103da
commit
785131d8e6
@ -10,6 +10,7 @@ switch(env) {
|
|||||||
envOpts.debug = true;
|
envOpts.debug = true;
|
||||||
// fall-through
|
// fall-through
|
||||||
case "test":
|
case "test":
|
||||||
|
case "cov":
|
||||||
envOpts.targets = {
|
envOpts.targets = {
|
||||||
node: "current"
|
node: "current"
|
||||||
};
|
};
|
||||||
@ -39,7 +40,7 @@ const config = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// we need to do this as long as we do not test everything from source
|
// 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.auxiliaryCommentBefore = "istanbul ignore next";
|
||||||
config.plugins.push("babel-plugin-istanbul");
|
config.plugins.push("babel-plugin-istanbul");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user