Skip to content

Commit e06da38

Browse files
authored
ci: using c8 instead of nyc (#104)
* ci: using c8 instead of nyc * ci: update ignore syntax for c8
1 parent 43d0e02 commit e06da38

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"@types/mocha": "^9.0.0",
3737
"@types/node": "^16.4.10",
3838
"@types/rewire": "^2.5.28",
39+
"c8": "^7.10.0",
3940
"commitizen": "^4.2.4",
4041
"cross-env": "^7.0.3",
4142
"cz-conventional-changelog": "^3.3.0",
@@ -47,7 +48,6 @@
4748
"mocha": "^9.1.0",
4849
"mocha-lcov-reporter": "1",
4950
"mwts": "^1.2.2",
50-
"nyc": "^15.1.0",
5151
"rewire": "^5.0.0",
5252
"standard-version": "^9.3.1",
5353
"swagger-ui-dist": "^3.51.1",
@@ -65,7 +65,7 @@
6565
"test": "midway-bin test --ts --forceExit",
6666
"test:mocha": "cross-env MIDWAY_SERVER_ENV=unittest mocha --parallel=false",
6767
"cov": "midway-bin cov --ts --forceExit",
68-
"cov:mocha": "cross-env MIDWAY_SERVER_ENV=unittest TS_NODE_TYPE_CHECK=false TS_NODE_TRANSPILE_ONLY=true nyc mocha --parallel=false",
68+
"cov:mocha": "cross-env MIDWAY_SERVER_ENV=unittest TS_NODE_TYPE_CHECK=false TS_NODE_TRANSPILE_ONLY=true c8 mocha --parallel=false",
6969
"lint": "mwts check",
7070
"lint:fix": "mwts fix",
7171
"ci": "npm run cov",

src/app/util/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function retrieveExternalNetWorkInfo(): NetworkInterfaceInfo[] {
77
const ret = Object.entries(networkInterfaces()).reduce(
88
(acc: NetworkInterfaceInfo[], curr) => {
99
const [, nets] = curr;
10-
/* istanbul ignore if */
10+
/* c8 ignore next 3 */
1111
if (!nets) {
1212
return acc;
1313
}

0 commit comments

Comments
 (0)