mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
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:
parent
9f131fae23
commit
26adc6ac0e
@ -7,7 +7,7 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "echo \"Implement me!\"",
|
"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'",
|
"lint": "eslint '**/*.js'",
|
||||||
"posttest": "yarn lint"
|
"posttest": "yarn lint"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user