Skip to content

Commit

Permalink
Separate tests for jest bin file
Browse files Browse the repository at this point in the history
  • Loading branch information
SleeplessByte committed Aug 11, 2024
1 parent 5d8bc66 commit ee1b283
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -324,20 +324,25 @@ if test -f "${OUTPUT}package.json"; then
fi;

bin_jest="$(cd "${COREPACK_ROOT_DIR}" && corepack pnpm bin)/jest"
if [[ -f "${bin_jest}" && -x $(realpath "${bin_jest}") ]]; then
if [[ -f "${bin_jest}" && ]]; then
echo "✔️ jest executable found using ${bin_jest}"
else
echo "💥 jest executable missing at ${bin_jest} or not executable for $(whoami)"
echo "👁️ ${bin_jest} -> $(realpath "${bin_jest}")"
echo " ${COREPACK_ROOT_DIR} as corepack root"

if test -f "${bin_jest}"; then
if [[ -x "${bin_jest}" ]]; then
echo "✔️ jest executable is executable for $(whoami)"
else
echo "💥 jest executable not executable for $(whoami)"
echo "👁️ ${COREPACK_ROOT_DIR} as corepack root"

ls -l "${bin_jest}"
fi

exit -1
fi
else
echo "💥 jest executable missing at ${bin_jest}"
exit -1
fi;


# Disable auto exit
set +e

Expand Down

0 comments on commit ee1b283

Please sign in to comment.