Skip to content

Commit ca6ef29

Browse files
Test migration from nyc to c8 due to incompatibility with new glob dependency
1 parent 7deeb6d commit ca6ef29

File tree

2 files changed

+96
-300
lines changed

2 files changed

+96
-300
lines changed

package.json

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"build": "tsc -p .",
1515
"prepare": "husky install && yarn run build",
1616
"test": "cross-env NODE_ENV=test yarn run build && ava",
17-
"coverage": "nyc --reporter=lcov yarn test"
17+
"coverage": "c8 yarn test"
1818
},
1919
"repository": {
2020
"type": "git",
@@ -65,6 +65,7 @@
6565
"@typescript-eslint/parser": "^6.0.0",
6666
"@unleash/client-specification": "^5.1.6",
6767
"ava": "^5.3.0",
68+
"c8": "^8.0.0",
6869
"cross-env": "^7.0.3",
6970
"del-cli": "^5.0.0",
7071
"eslint": "^8.44.0",
@@ -78,7 +79,6 @@
7879
"lint-staged": "^14.0.0",
7980
"mkdirp": "^3.0.1",
8081
"nock": "^13.3.1",
81-
"nyc": "^15.1.0",
8282
"prettier": "^3.0.0",
8383
"redis": "^4.6.7",
8484
"sinon": "^18.0.0",
@@ -94,19 +94,25 @@
9494
"qs": "^6.5.3",
9595
"minimatch": "^3.0.5",
9696
"semver": "^7.5.3",
97-
"glob": "^10.5.0"
97+
"glob": "^10.5.0",
98+
"test-exclude/yargs": "^17.7.2",
99+
"test-exclude/yargs-parser": "^21.1.1"
98100
},
99-
"nyc": {
101+
"c8": {
100102
"lines": 95,
101103
"statements": 95,
102104
"functions": 95,
103105
"branches": 80,
104106
"include": [
105-
"lib/**.js",
106-
"lib/**/*.js"
107+
"src/**/*.ts"
107108
],
108109
"all": true,
109-
"exclude-after-remap": false
110+
"exclude-after-remap": false,
111+
"src": true,
112+
"reporter": [
113+
"lcov",
114+
"text"
115+
]
110116
},
111117
"prettier": {
112118
"printWidth": 100,

0 commit comments

Comments
 (0)