chore(web,server): run code coverage reports (#1313)

* chore(web,server): run code coverage reports

* chore(tests): fail test check if coverage drops

* chore: disable e2e until they are fixed

* chore(web): coverage threshold
This commit is contained in:
Jason Rasmussen
2023-01-12 17:07:57 -05:00
committed by GitHub
parent 6db541c89b
commit 755a1331da
6 changed files with 233 additions and 86 deletions

View File

@@ -22,7 +22,7 @@
"lint:fix": "npm run lint -- --fix",
"check": "tsc --noEmit",
"check:code": "npm run format && npm run lint && npm run check",
"check:all": "npm run check:code && npm run test",
"check:all": "npm run check:code && npm run test:cov",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
@@ -139,6 +139,18 @@
"**/*.(t|j)s"
],
"coverageDirectory": "./coverage",
"coverageThreshold": {
"global": {
"lines": 20,
"statements": 20
},
"./libs/domain/": {
"branches": 60,
"functions": 80,
"lines": 80,
"statements": 80
}
},
"testEnvironment": "node",
"roots": [
"<rootDir>/apps/",