diff --git a/.circleci/setupAndTestBackendSDKWithFreeCore.sh b/.circleci/setupAndTestBackendSDKWithFreeCore.sh index d485025cc..60f2ee7c5 100755 --- a/.circleci/setupAndTestBackendSDKWithFreeCore.sh +++ b/.circleci/setupAndTestBackendSDKWithFreeCore.sh @@ -109,8 +109,14 @@ git checkout $frontendDriverVersion npm install npm run build +export API_PORT=$API_PORT +export TEST_MODE=testing +export SUPERTOKENS_CORE_TAG=$coreTag +export NODE_PORT=8081 +export INSTALL_PATH=../supertokens-root + TEST_FILES=$(circleci tests glob "test/**/*.test.js") -API_PORT=$API_PORT TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root echo "$TEST_FILES" | circleci tests run --command="xargs npx mocha mocha --node-option no-experimental-fetch -r test/fetch-polyfill.mjs --timeout 500000 --no-config" --verbose --split-by=timings +echo "$TEST_FILES" | circleci tests run --command="xargs npx mocha mocha --node-option no-experimental-fetch -r test/fetch-polyfill.mjs --timeout 500000 --no-config" --verbose --split-by=timings # kill test-server kill $(lsof -t -i:$API_PORT) diff --git a/.circleci/setupAndTestWithFreeCore.sh b/.circleci/setupAndTestWithFreeCore.sh index be84fbcdb..a03963f19 100755 --- a/.circleci/setupAndTestWithFreeCore.sh +++ b/.circleci/setupAndTestWithFreeCore.sh @@ -89,5 +89,10 @@ cd ../project/ # Set the script to exit on error set -e +export TEST_MODE=testing +export SUPERTOKENS_CORE_TAG=$coreTag +export NODE_PORT=8081 +export INSTALL_PATH=../supertokens-root + TEST_FILES=$(circleci tests glob "test/**/*.test.js") -TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root echo "$TEST_FILES" | circleci tests run --command="xargs npx mocha mocha --node-option no-experimental-fetch --timeout 40000 --no-config" --verbose --split-by=timings +echo "$TEST_FILES" | circleci tests run --command="xargs npx mocha mocha --node-option no-experimental-fetch --timeout 40000 --no-config" --verbose --split-by=timings