Skip to content

Commit

Permalink
chore: run unite tests before commiting (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Jul 16, 2023
1 parent 5fb6782 commit f4c6de9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm test run
pnpm lint-staged
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"codegen": "graphql-codegen",
"dev": "vite dev",
"lint": "vite lint",
"prepare": "husky install"
"prepare": "husky install",
"test": "vitest"
},
"dependencies": {
"@commitlint/cli": "^17.6.6",
Expand Down

0 comments on commit f4c6de9

Please sign in to comment.