Skip to content

Commit

Permalink
tests: added nyc
Browse files Browse the repository at this point in the history
  • Loading branch information
finkinfridom committed Oct 30, 2023
1 parent 5bb4c24 commit 31f7e54
Show file tree
Hide file tree
Showing 2 changed files with 962 additions and 4 deletions.
23 changes: 22 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,41 @@
"author": "Alberto Maghini <a.maghini@gmail.com>",
"license": "MIT",
"scripts": {
"test": "mocha -r ts-node/register ./__tests__/*.spec.ts",
"test:mocha": "mocha -r ts-node/register ./__tests__/*.spec.ts",
"test": "nyc yarn test:mocha",
"watch": "DEBUG=bool-is-bool mocha -r ts-node/register ./__tests__/*.spec.ts --watch",
"pack": "tsc",
"push:cov": "yarn test && docker run -v $PWD:/code codacy/codacy-coverage-reporter report --coverage-reports /code/coverage/lcov.info"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@types/chai": "4.3.9",
"@types/debug": "4.1.10",
"@types/mocha": "10.0.3",
"chai": "4.3.10",
"debug": "4.3.4",
"mocha": "10.2.0",
"nyc": "^15.1.0",
"supports-color": "9.4.0",
"ts-node": "10.9.1",
"typescript": "5.2.2"
},
"nyc": {
"extends": "@istanbuljs/nyc-config-typescript",
"check-coverage": true,
"all": true,
"include": [
"src/**/!(*.test.*).[tj]s?(x)"
],
"exclude": [
"__tests__/**/*.*"
],
"reporter": [
"html",
"lcov",
"text",
"text-summary"
],
"report-dir": "coverage"
}
}
Loading

0 comments on commit 31f7e54

Please sign in to comment.