0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

add coverage thresholds and coverage command

This commit is contained in:
Charlie Humphreys
2023-01-05 23:30:20 -06:00
parent 0720ac6a15
commit 4b3edf053f

View File

@@ -19,6 +19,7 @@
"circleci": "npm test && eslint **/*.{js,jsx} --max-warnings=0",
"verify": "npm run lint && npm test",
"test": "jest",
"test:coverage": "jest --coverage",
"test:dev": "jest --verbose --watch",
"test:basic": "jest tests/markdown/basic.test.js --verbose",
"test:mustache-span": "jest tests/markdown/mustache-span.test.js --verbose",
@@ -39,7 +40,21 @@
"mode_modules",
"shared",
"server"
]
],
"coverageThreshold" : {
"global" : {
"statements" : 25,
"branches" : 10,
"functions" : 22,
"lines" : 25
},
"server/homebrew.api.js" : {
"statements" : 71,
"branches" : 54,
"functions" : 66,
"lines" : 73
}
}
},
"babel": {
"presets": [