Add coverage support

pull/77/head
MillenniumEarl 2021-03-08 20:56:50 +01:00
parent f440c6eee5
commit dbc7d38d3f
2 changed files with 2094 additions and 25 deletions

2115
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,8 @@
"lint": "eslint . --ext .ts",
"prettier-format": "prettier --config .prettierrc '{src,test}/**/*.ts' --write",
"compile": "tsc",
"test": "mocha --reporter spec --require ts-node/register test/index.ts",
"test": "nyc --reporter=text mocha --require ts-node/register test/index.ts",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov -t 38ad72bf-a29d-4c2e-9827-96cbe037afd2",
"publish": "npm publish",
"run-example": "npm run compile && node ./dist/example.js"
},
@ -62,6 +63,7 @@
"inquirer": "^8.0.0",
"lint-staged": "^10.5.4",
"mocha": "^8.3.1",
"nyc": "^15.1.0",
"prettier": "^2.2.1",
"ts-node": "^9.1.1",
"typescript": "^4.2.3"