Skip to content

Commit

Permalink
Chore: running unit specs on pre-commit 🧲
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-0x29a committed Sep 27, 2024
1 parent 5dd2397 commit ea3a754
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
npm run lint
npm run unit-test
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"dev": "cross-env NODE_ENV=dev nodemon src/index.ts",
"test": "cross-env NODE_ENV=test jest",
"unit-test": "cross-env NODE_ENV=test jest ./src",
"lint": "eslint . --fix",
"build": "sucrase ./src -d ./dist --transforms typescript,imports",
"start": "node ./dist/index.js",
Expand Down

0 comments on commit ea3a754

Please sign in to comment.