mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Added c8 test coverage
refs https://github.com/TryGhost/Team/issues/870 - using `c8` allows us to see test coverage for all packages in the repo - this commit adds `c8` as a dev dependency and prepends the `mocha` command with `c8` so it runs on all tests
This commit is contained in:
parent
7ea1e28763
commit
6e4437c7e4
5 changed files with 10 additions and 5 deletions
|
@ -7,7 +7,7 @@
|
|||
"main": "index.js",
|
||||
"scripts": {
|
||||
"dev": "echo \"Implement me!\"",
|
||||
"test": "NODE_ENV=testing mocha './test/**/*.test.js'",
|
||||
"test": "NODE_ENV=testing c8 mocha './test/**/*.test.js'",
|
||||
"lint": "eslint . --ext .js --cache",
|
||||
"posttest": "yarn lint"
|
||||
},
|
||||
|
@ -22,6 +22,7 @@
|
|||
"@types/jsonwebtoken": "8.5.1",
|
||||
"@types/node": "14.17.0",
|
||||
"@types/nodemailer": "6.4.1",
|
||||
"c8": "7.8.0",
|
||||
"mocha": "9.0.3",
|
||||
"should": "13.2.3",
|
||||
"sinon": "11.1.2"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"main": "index.js",
|
||||
"scripts": {
|
||||
"dev": "echo \"Implement me!\"",
|
||||
"test": "NODE_ENV=testing mocha --reporter dot './test/**/*.test.js'",
|
||||
"test": "NODE_ENV=testing c8 mocha --reporter dot './test/**/*.test.js'",
|
||||
"lint": "eslint '**/*.js'",
|
||||
"posttest": "yarn lint"
|
||||
},
|
||||
|
@ -19,6 +19,7 @@
|
|||
],
|
||||
"devDependencies": {
|
||||
"@types/node-jose": "1.1.6",
|
||||
"c8": "7.8.0",
|
||||
"mocha": "9.0.3",
|
||||
"nock": "13.1.0",
|
||||
"should": "13.2.3",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"main": "index.js",
|
||||
"scripts": {
|
||||
"dev": "echo \"Implement me!\"",
|
||||
"test": "NODE_ENV=testing mocha './test/**/*.test.js'",
|
||||
"test": "NODE_ENV=testing c8 mocha './test/**/*.test.js'",
|
||||
"lint": "eslint . --ext .js --cache",
|
||||
"posttest": "yarn lint"
|
||||
},
|
||||
|
@ -19,6 +19,7 @@
|
|||
"access": "public"
|
||||
},
|
||||
"devDependencies": {
|
||||
"c8": "7.8.0",
|
||||
"mocha": "9.0.3",
|
||||
"should": "13.2.3",
|
||||
"sinon": "11.1.2"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"main": "index.js",
|
||||
"scripts": {
|
||||
"dev": "echo \"Implement me!\"",
|
||||
"test": "NODE_ENV=testing mocha './test/**/*.test.js'",
|
||||
"test": "NODE_ENV=testing c8 mocha './test/**/*.test.js'",
|
||||
"lint": "eslint . --ext .js --cache",
|
||||
"posttest": "yarn lint"
|
||||
},
|
||||
|
@ -19,6 +19,7 @@
|
|||
"access": "public"
|
||||
},
|
||||
"devDependencies": {
|
||||
"c8": "7.8.0",
|
||||
"mocha": "9.0.3",
|
||||
"should": "13.2.3",
|
||||
"sinon": "11.1.2"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"main": "index.js",
|
||||
"scripts": {
|
||||
"dev": "echo \"Implement me!\"",
|
||||
"test": "NODE_ENV=testing mocha './test/**/*.test.js'",
|
||||
"test": "NODE_ENV=testing c8 mocha './test/**/*.test.js'",
|
||||
"lint": "eslint '**/*.js'",
|
||||
"posttest": "yarn lint"
|
||||
},
|
||||
|
@ -18,6 +18,7 @@
|
|||
"devDependencies": {
|
||||
"@types/cookies": "0.7.6",
|
||||
"@types/node": "14.17.0",
|
||||
"c8": "7.8.0",
|
||||
"keypair": "1.0.3",
|
||||
"mocha": "9.0.3",
|
||||
"should": "13.2.3",
|
||||
|
|
Loading…
Add table
Reference in a new issue