test: add code coverage

This commit is contained in:
Nolan Lawson 2020-06-04 21:50:31 -07:00
parent 72cc5bfbda
commit c439b7e70a
2 changed files with 4 additions and 2 deletions

View File

@ -14,5 +14,6 @@ module.exports = {
verbose: true,
setupFilesAfterEnv: [
'<rootDir>/config/jest.setup.js'
]
],
coverageReporters: ['json', 'lcov', 'text', 'html']
}

View File

@ -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",