diff --git a/.husky/pre-commit b/.husky/pre-commit index a5a29d9f..c9965983 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,5 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" +pnpm test run pnpm lint-staged diff --git a/package.json b/package.json index 72902599..017b9186 100644 --- a/package.json +++ b/package.json @@ -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",