test: add code coverage
This commit is contained in:
parent
72cc5bfbda
commit
c439b7e70a
|
@ -14,5 +14,6 @@ module.exports = {
|
|||
verbose: true,
|
||||
setupFilesAfterEnv: [
|
||||
'<rootDir>/config/jest.setup.js'
|
||||
]
|
||||
],
|
||||
coverageReporters: ['json', 'lcov', 'text', 'html']
|
||||
}
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
"dev": "NODE_ENV=development rollup -c -w",
|
||||
"lint": "standard && stylelint '**/*.scss'",
|
||||
"lint:fix": "standard --fix && stylelint --fix '**/*.scss'",
|
||||
"test": "jest"
|
||||
"test": "jest",
|
||||
"cover": "jest --coverage"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
Loading…
Reference in New Issue