From d8ff99475e9ad84e39fc53868ff87b5b97e8dcb3 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Mon, 21 Oct 2024 14:35:26 -0700 Subject: [PATCH] Add the Rails tests to the pre-commit hook I'm gonna work on adding modeling tests, and I want to not be breaking them without realizing! The trade history ones are good to be checking more often like this, too. --- .husky/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 63054c23..df37ad6b 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -yarn lint --max-warnings=0 --fix +yarn lint --max-warnings=0 --fix && bin/rails test