From df8f245010a073162fc643bea121c97edfe063d5 Mon Sep 17 00:00:00 2001 From: Alex Verkhovsky Date: Wed, 19 Aug 2026 04:26:07 -0700 Subject: [PATCH] fix(hooks): abort the commit when npm test fails pre-commit ran lint-staged and npm test but never checked their exit codes, so a failing suite still produced a commit. set -e makes any failing step abort. --- .husky/pre-commit | 1 + 1 file changed, 1 insertion(+) diff --git a/.husky/pre-commit b/.husky/pre-commit index 9d7c37791..17911a460 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,5 @@ #!/usr/bin/env sh +set -e # Auto-fix changed files and stage them npx --no-install lint-staged