From c794d3f3494c5bd09ddcfc50ee005539f276e0a9 Mon Sep 17 00:00:00 2001 From: Derk-Jan Karrenbeld Date: Sun, 11 Aug 2024 17:20:55 +0200 Subject: [PATCH] Print executability --- bin/run.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/run.sh b/bin/run.sh index b8468b6..e28d38d 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -322,6 +322,15 @@ if test -f "${OUTPUT}package.json"; then fi fi; +bin_jest="$(corepack pnpm bin)/jest" +if [[ -f "${bin_jest}" && -x $(realpath "${bin_jest}") ]]; then + echo "✔️ jest executable found" +else + echo "💥 jest executable missing at ${bin_jest} or not executable" + echo "👁️ ${bin_jest} -> $(realpath "${bin_jest}")" + exit -1 +fi; + # Disable auto exit set +e