Skip to content

Commit b0be4d7

Browse files
author
huangshuwei
committed
add istanbul
1 parent 223c042 commit b0be4d7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

babel.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ module.exports = {
44
/* presets: [["env", { modules: false }]], */
55
env: {
66
test: {
7-
presets: [["env", { targets: { node: "current" } }]]
7+
presets: [["env", { targets: { node: "current" } }]],
8+
plugins: ["istanbul"]
89
}
910
}
1011
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"libs"
1414
],
1515
"scripts": {
16-
"test": "cross-env NODE_ENV=test jest --config jest.config.js",
16+
"test": "cross-env NODE_ENV=test BABEL_ENV=test jest --config jest.config.js",
1717
"test:cover": "cross-env NODE_ENV=test COVERAGE=true jest --config jest.config.js",
1818
"codecov": "codecov",
1919
"lint": "vue-cli-service lint",

0 commit comments

Comments
 (0)