Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit ce25ad1

Browse files
author
Robin Schultz
committed
add codecov
1 parent 01336ce commit ce25ad1

File tree

3 files changed

+38
-10
lines changed

3 files changed

+38
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/anigenero/log4js2.svg?branch=typescript)](https://travis-ci.org/anigenero/log4js2)
1+
[![Build Status](https://travis-ci.org/anigenero/log4js2.svg?branch=master)](https://travis-ci.org/anigenero/log4js2)
22

33
# log4js2
44
log4js2 is a fast and lightweight logging library that enables logging flexibility within JavaScript/TypeScript applications,

package-lock.json

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"scripts": {
55
"build": "npm run lint && tsc",
66
"lint": "tslint -p tsconfig.json -c tslint.json",
7-
"test": "jest"
7+
"test": "jest",
8+
"posttest": "codecov -f coverage/*.json"
89
},
910
"author": {
1011
"name": "Robin Schultz",
@@ -34,6 +35,7 @@
3435
"@types/core-js": "^0.9.46",
3536
"@types/jest": "^22.2.3",
3637
"@types/node": "^7.0.66",
38+
"codecov": "^3.0.4",
3739
"jest": "^22.4.4",
3840
"jest-cli": "^22.4.4",
3941
"ts-jest": "^22.4.6",
@@ -44,21 +46,14 @@
4446
"typescript": "^2.9.2"
4547
},
4648
"jest": {
47-
"coverageThreshold": {
48-
"global": {
49-
"branches": 90,
50-
"functions": 90,
51-
"lines": 90,
52-
"statements": 90
53-
}
54-
},
5549
"moduleFileExtensions": [
5650
"ts",
5751
"js"
5852
],
5953
"setupFiles": [
6054
"<rootDir>/jest.setup.js"
6155
],
56+
"collectCoverage": true,
6257
"coveragePathIgnorePatterns": [
6358
"/dist/",
6459
"/node_modules/"

0 commit comments

Comments
 (0)