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.
This commit is contained in:
Emi Matchu 2024-10-21 14:35:26 -07:00
parent 9726ecb1a5
commit d8ff99475e

View file

@ -1,4 +1,4 @@
#!/usr/bin/env sh #!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh" . "$(dirname -- "$0")/_/husky.sh"
yarn lint --max-warnings=0 --fix yarn lint --max-warnings=0 --fix && bin/rails test