Skip to content

Commit

Permalink
👷 Add environment variable to skip pre-commit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
clabe45 committed Jan 14, 2024
1 parent 2c76d13 commit 523c4eb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
. "$(dirname -- "$0")/_/husky.sh"

npm run lint
npm run test:unit
npm run test:smoke
npm run test:integration

if [ -z "$SKIP_TESTS" ]; then
npm run test:unit
npm run test:smoke
npm run test:integration
fi

0 comments on commit 523c4eb

Please sign in to comment.