Added c8 --all to surface true members-api coverage

refs: https://github.com/TryGhost/Toolbox/issues/203

- Without the all flag only files touched by tests are counted
- This shows our unit-testing picture more clearly
- Will get this change rolled out across all repos and packages ASAP, but for now this one seemed most important
This commit is contained in:
Hannah Wolfe 2022-02-04 15:10:54 +00:00
parent 9f131fae23
commit 26adc6ac0e

View File

@ -7,7 +7,7 @@
"main": "index.js",
"scripts": {
"dev": "echo \"Implement me!\"",
"test": "NODE_ENV=testing c8 --reporter text --reporter cobertura mocha --reporter dot './test/**/*.test.js'",
"test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha --reporter dot './test/**/*.test.js'",
"lint": "eslint '**/*.js'",
"posttest": "yarn lint"
},