Skip to content

Commit

Permalink
Try alternatives
Browse files Browse the repository at this point in the history
  • Loading branch information
SleeplessByte committed Aug 11, 2024
1 parent 273648c commit 28b1ea0
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@ echo ""

jest_tests=$(cd "${OUTPUT}" && corepack pnpm jest --listTests --passWithNoTests) || false

echo $("$(corepack pnpm bin)/jest --listTests")
echo $("corepack pnpm node ${ROOT}node_modules/jest/bin/jest.js --listTests")

if [ -z "${jest_tests}" ]; then
echo "❌ no jest tests (*.spec.js) discovered."

Expand Down Expand Up @@ -399,19 +402,19 @@ echo ""
echo "⚙️ corepack pnpm jest <...>"
echo ""

cd "${OUTPUT}" && corepack pnpm --offline jest "${OUTPUT}*" \
--bail 1 \
--ci \
--colors \
--config ${CONFIG} \
--noStackTrace \
--outputFile="${result_file}" \
--passWithNoTests \
--reporters "${REPORTER}" \
--roots "${OUTPUT}" \
--setupFilesAfterEnv ${SETUP} \
--verbose false \
--testLocationInResults
corepack pnpm jest "${OUTPUT}*" \
--bail 1 \
--ci \
--colors \
--config ${CONFIG} \
--noStackTrace \
--outputFile="${result_file}" \
--passWithNoTests \
--reporters "${REPORTER}" \
--roots "${OUTPUT}" \
--setupFilesAfterEnv ${SETUP} \
--verbose false \
--testLocationInResults

# Convert exit(1) (jest worked, but there are failing tests) to exit(0)
test_exit=$?
Expand Down

0 comments on commit 28b1ea0

Please sign in to comment.