CEC-1167 implementing ths coverage thresold (#128)
This commit is contained in:
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
@@ -1,7 +1,6 @@
|
|||||||
name: Node.js CI
|
name: Node.js CI
|
||||||
|
|
||||||
on: push
|
on: [pull_request]
|
||||||
# [pull_request]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
12
package.json
12
package.json
@@ -58,11 +58,17 @@
|
|||||||
"collectCoverageFrom": [
|
"collectCoverageFrom": [
|
||||||
"src/**/*.{js,jsx,ts,tsx}"
|
"src/**/*.{js,jsx,ts,tsx}"
|
||||||
],
|
],
|
||||||
|
"coverageThreshold": {
|
||||||
|
"global": {
|
||||||
|
"branches": 39,
|
||||||
|
"functions": 47,
|
||||||
|
"lines": 50,
|
||||||
|
"statements": 49
|
||||||
|
}
|
||||||
|
},
|
||||||
"coverageReporters": [
|
"coverageReporters": [
|
||||||
"html",
|
"html",
|
||||||
"json",
|
"lcov"
|
||||||
"lcov",
|
|
||||||
"cobertura"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user