Skip to content

Commit

Permalink
Merge pull request #22942 from department-of-veterans-affairs/HunJerB…
Browse files Browse the repository at this point in the history
…AH/APPEALS-59113

APPEALS-59113: Git PR Command does not allow frontend tests to run without -- option
  • Loading branch information
HunJerBAH authored Oct 23, 2024
2 parents 1158b8e + fd3bfea commit 9869398
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions git-commands/git-clean-pr
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,26 @@ if [[ ! -z "$jsxCommits" || ! -z "$jsCommits" ]]; then
echo "running jest tests for $jsCommits"; echo "";
# use SCRIPT_DIR to get to appeals/client/test
cd "$SCRIPT_DIR"
cd ../client


# check for autofix option in parameters
# run -o for autofix jest and update snapshots
for var in "$@"
do
if [ "$var" == "autofix" ]; then
cd ../client && yarn jest $var
yarn jest $var
yarn jest --updateSnapshot
else
cd ../client && yarn jest
else
yarn jest
fi
done

if [ $# -eq 0 ]
then
yarn jest
fi

# run lint:fix
yarn run lint:fix

Expand Down

0 comments on commit 9869398

Please sign in to comment.