Skip to content

Commit 3e439b7

Browse files
committed
Added babel-plugin-istanbul and changed the babel.config.js to make coverage work back again
1 parent ede4680 commit 3e439b7

File tree

3 files changed

+242
-1
lines changed

3 files changed

+242
-1
lines changed

babel.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@ module.exports = {
55
plugins: [
66
'@babel/plugin-proposal-nullish-coalescing-operator',
77
'@babel/plugin-proposal-optional-chaining'
8-
]
8+
],
9+
'env': {
10+
'test': {
11+
'plugins': ['istanbul']
12+
}
13+
}
914
}

package-lock.json

Lines changed: 235 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"@vue/eslint-config-standard": "^4.0.0",
4141
"@vue/test-utils": "^1.0.3",
4242
"babel-eslint": "^10.0.1",
43+
"babel-plugin-istanbul": "^6.1.1",
4344
"chai": "^4.2.0",
4445
"copy-dir": "^1.2.0",
4546
"cross-env": "^7.0.3",

0 commit comments

Comments
 (0)