Skip to content

Commit c4e1f87

Browse files
authored
Fix coverage config (#142)
* Fix coverage config * Set fail_ci_if_error to true
1 parent eb5fef3 commit c4e1f87

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ jobs:
2626
- name: Publish to Codecov
2727
uses: codecov/codecov-action@v2
2828
with:
29-
files: coverage/lcov.info
29+
files: coverage/lcov.info
30+
fail_ci_if_error: true

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"main": "lib/bigdecimal.js",
1010
"module": "lib/bigdecimal.mjs",
1111
"scripts": {
12-
"test": "mocha --require ts-node/register/transpile-only --require source-map-support/register -t 100000 test/**/**/*.js",
13-
"coverage": "nyc npm run test",
12+
"test": "mocha --require ts-node/register --require source-map-support/register -t 100000 test/**/**/*.js",
13+
"coverage": "nyc --reporter=lcov npm run test",
1414
"precompile": "rimraf lib",
1515
"compile": " npm run compile:cjs && npm run compile:esm && npm run prepareESM",
1616
"compile:esm": "tsc --module es2020 --outDir lib/esm",

0 commit comments

Comments
 (0)