Skip to content

Commit

Permalink
🔨 Test coverage setup using nyc
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreMiras committed Dec 4, 2024
1 parent 41e063e commit 4c83c9b
Show file tree
Hide file tree
Showing 3 changed files with 323 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

# testing
/coverage
.nyc_output

# production
/build
Expand Down
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"scripts": {
"cli": "ts-node src/cli.ts",
"cli:debug": "node --inspect --require ts-node/register/transpile-only src/cli.ts",
"test": "mocha --require ts-node/register src/*.test.ts",
"test:debug": "mocha --require ts-node/register/transpile-only --inspect src/*.test.ts",
"test": "nyc mocha --require ts-node/register src/*.test.ts",
"test:debug": "nyc mocha --require ts-node/register/transpile-only --inspect src/*.test.ts",
"lint:prettier": "prettier --check src docs .github *.json *.md *.mjs",
"format:prettier": "prettier --write src docs .github *.json *.md *.mjs",
"lint:eslint": "eslint src",
Expand All @@ -33,6 +33,12 @@
"bin": {
"edilkamin": "dist/cjs/cli.js"
},
"nyc": {
"reporter": [
"html",
"text"
]
},
"dependencies": {
"aws-amplify": "^6.10.0",
"axios": "^0.26.0"
Expand All @@ -50,6 +56,7 @@
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"mocha": "^10.8.2",
"nyc": "^17.1.0",
"prettier": "^2.5.1",
"sinon": "^19.0.2",
"ts-node": "^10.9.1",
Expand Down
Loading

0 comments on commit 4c83c9b

Please sign in to comment.