Add jest config and export main.js

This commit is contained in:
Thomas Hughes
2019-09-20 15:29:25 -05:00
parent 97fca7f8d6
commit e87cc39944
4 changed files with 30 additions and 4 deletions

View File

@@ -36,5 +36,19 @@
"jest": "^24.8.0",
"prettier": "^1.16.4",
"husky": "^3.0.5"
},
"jest": {
"testEnvironment": "node",
"collectCoverageFrom": [
"src/main.js"
],
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 80
}
}
}
}