husky: run tests on commit

This commit is contained in:
Evan
2025-04-18 14:45:18 -07:00
parent 9de072c0c6
commit 9edc82b354
Regular → Executable
+11 -1
View File
@@ -1 +1,11 @@
npx lint-staged
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# Run tests first
npm run test || {
echo "Tests failed - commit aborted"
exit 1
}
# Then run lint-staged if tests pass
npx lint-staged