Added c8 coverage to package-json tests

no issue

- this commit adds the c8 dependency to the `package-json`, and prepends
  it to the test alias so we can see the coverage in tests
- note: we're apparently already at 100%!
This commit is contained in:
Daniel Lockyer 2021-05-07 12:33:53 +01:00
parent 763875a15b
commit a81d90b126

View File

@ -7,7 +7,7 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"dev": "echo \"Implement me!\"", "dev": "echo \"Implement me!\"",
"test": "NODE_ENV=testing mocha './test/**/*_spec.js'", "test": "NODE_ENV=testing c8 --check-coverage mocha './test/**/*_spec.js'",
"lint": "eslint . --ext .js --cache", "lint": "eslint . --ext .js --cache",
"posttest": "yarn lint" "posttest": "yarn lint"
}, },
@ -19,6 +19,7 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"c8": "7.7.2",
"mocha": "8.3.2", "mocha": "8.3.2",
"should": "13.2.3", "should": "13.2.3",
"sinon": "10.0.0", "sinon": "10.0.0",