Skip to content

Commit 64a9fac

Browse files
committed
Added --all flag to c8 commands
refs https://github.com/TryGhost/Toolbox/issues/203 - without `--all`, c8 will ignore files that aren't covered in tests, so they won't pull the test coverage down - this means we have artificially high coverage scores - this commit adds `--all` where previously missing
1 parent 6867eae commit 64a9fac

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/config-url-helpers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"main": "index.js",
88
"scripts": {
99
"dev": "echo \"Implement me!\"",
10-
"test": "NODE_ENV=testing c8 --reporter text --reporter cobertura --check-coverage mocha './test/**/*.test.js'",
10+
"test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage mocha './test/**/*.test.js'",
1111
"coverage": "c8 report -r html",
1212
"lint": "eslint . --ext .js --cache",
1313
"posttest": "yarn lint"

packages/image-transform/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"main": "index.js",
88
"scripts": {
99
"dev": "echo \"Implement me!\"",
10-
"test": "NODE_ENV=testing c8 --reporter text --reporter cobertura mocha './test/**/*.test.js'",
10+
"test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'",
1111
"lint": "eslint . --ext .js --cache",
1212
"posttest": "yarn lint"
1313
},

packages/limit-service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"exports": "./lib/limit-service.js",
99
"scripts": {
1010
"dev": "echo \"Implement me!\"",
11-
"test": "NODE_ENV=testing c8 --reporter text --reporter cobertura mocha './test/**/*.test.js'",
11+
"test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'",
1212
"lint": "eslint . --ext .js --cache",
1313
"posttest": "yarn lint"
1414
},

0 commit comments

Comments
 (0)