Skip to content

Commit

Permalink
test: make tests always exit when all tests ran in CI (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus authored Sep 24, 2023
1 parent c40e993 commit b963fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/setupAndTestWithFreeCore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pid=$!
cd ../../

if ! [[ -z "${CIRCLE_NODE_TOTAL}" ]]; then
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag INSTALL_PATH=../supertokens-root multi="spec=- mocha-junit-reporter=/dev/null" npx mocha --reporter mocha-multi --no-config --require isomorphic-fetch --timeout 500000 $(npx mocha-split-tests -r ./runtime.log -t $CIRCLE_NODE_TOTAL -g $CIRCLE_NODE_INDEX -f 'test/*.test.js')
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag INSTALL_PATH=../supertokens-root multi="spec=- mocha-junit-reporter=/dev/null" npx mocha --exit --reporter mocha-multi --no-config --require isomorphic-fetch --timeout 500000 $(npx mocha-split-tests -r ./runtime.log -t $CIRCLE_NODE_TOTAL -g $CIRCLE_NODE_INDEX -f 'test/*.test.js')
else
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag INSTALL_PATH=../supertokens-root npm test
fi
Expand Down

0 comments on commit b963fd3

Please sign in to comment.