From 28b1ea0d1bf84b99561deb8f9e45976b92c7c6d8 Mon Sep 17 00:00:00 2001 From: Derk-Jan Karrenbeld Date: Sun, 11 Aug 2024 17:45:58 +0200 Subject: [PATCH] Try alternatives --- bin/run.sh | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/bin/run.sh b/bin/run.sh index 6a56263..d2eaaf4 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -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." @@ -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=$?