Do not run frontend tests upon git hooks (#1614)

* test

* tst

* front changes

* Changes pre-commit

* Changes pre-commit

* Changes pre-commit

* non fe change

* fe change

* Removes unnecessary variable

* Remvoes console.log

* Removes newline

* Remove formating by VSCode plugin
This commit is contained in:
Damir Abdulganiev 2022-02-16 17:58:36 +03:00 committed by GitHub
parent f084dc36a1
commit c3d44c95c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,11 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
cd kafka-ui-react-app && npm run pre-commit
if git diff --cached --name-only | grep --quiet "kafka-ui-react-app"
then
cd kafka-ui-react-app && npm run pre-commit
else
echo "Skipping frontend tests"
exit 0
fi