Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

chore: move nyc config changes from package.json into .nycrc (#5668)

Andy Edwardse923e4063f6a
diff --git a/.nycrc b/.nycrc
index d81951ae..f5da62b6 100644
--- a/.nycrc
+++ b/.nycrc
@@ -1,5 +1,6 @@
{
"reporter": ["json", "text-summary"],
+ "all": true,
"exclude": [
"coverage/**",
"docs/**",
@@ -13,6 +14,9 @@
"**/{babel.config,.eslintrc,.mocharc}.{js,cjs}",
"lib/browser/**",
"package-scripts.js",
+ "package-lock.json",
+ "**/package-lock.json",
+ "node_modules/**",
"scripts/**"
]
}
diff --git a/package.json b/package.json
index 25511ccf..a168c7e0 100644
--- a/package.json
+++ b/package.json
@@ -42,15 +42,6 @@
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
- "nyc": {
- "all": true,
- "exclude": [
- "package-lock.json",
- "**/package-lock.json",
- "node_modules/**",
- "test/**"
- ]
- },
"scripts": {
"build": "rollup -c ./rollup.config.mjs",
"clean": "rimraf mocha.js mocha.js.map",