2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

feat: add Node.js coverage script using c8 (closes #7289) (#7294)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Nikunj Mochi
2025-12-06 14:07:24 +05:30
committed by GitHub
parent 7764844686
commit ec9d94e9f8
2 changed files with 470 additions and 6 deletions
+19
View File
@@ -46,6 +46,7 @@
"scripts": {
"test": "npm run test:node && npm run test:browser && npm run test:package",
"test:node": "npm run test:mocha",
"test:node:coverage": "c8 npm run test:mocha",
"test:browser": "npm run test:karma",
"test:package": "npm run test:eslint && npm run test:dtslint && npm run test:exports",
"test:eslint": "node bin/ssl_hotfix.js eslint lib/**/*.js",
@@ -112,6 +113,7 @@
"abortcontroller-polyfill": "^1.7.5",
"auto-changelog": "^2.4.0",
"body-parser": "^1.20.2",
"c8": "^10.1.3",
"chalk": "^5.3.0",
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",
@@ -239,5 +241,22 @@
"extends": [
"@commitlint/config-conventional"
]
},
"c8": {
"all": true,
"include": [
"lib/**/*.js",
"lib/**/*.ts"
],
"exclude": [
"test",
"sandbox"
],
"reporter": [
"text",
"lcov",
"html"
],
"report-dir": "./coverage"
}
}