Skip to content

Commit

Permalink
#181: add initial code coverage support
Browse files Browse the repository at this point in the history
  • Loading branch information
bertoverflow committed Oct 22, 2020
1 parent f5437b6 commit ba0535a
Show file tree
Hide file tree
Showing 6 changed files with 1,318 additions and 255 deletions.
9 changes: 9 additions & 0 deletions frontend/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@ module.exports = {
presets: [
'@vue/cli-plugin-babel/preset',
],
env: {
test: {
plugins: [
['istanbul', {
useInlineSourceMaps: false
}]
]
}
}
};
22 changes: 22 additions & 0 deletions frontend/nyc.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = {
'check-coverage': false,
'per-file': true,
'skip-full': true,
all: true,
include: [
'src/**/*.{js,vue}',
],
exclude: [
'src/*.js',
'**/index.js',
],
reporter: [
'lcov',
'text',
'text-summary',
],
extension: [
'.js',
'.vue',
],
};
Loading

0 comments on commit ba0535a

Please sign in to comment.