Skip to content

Commit

Permalink
Remove use of test.mocha.env in tests that don't use it
Browse files Browse the repository at this point in the history
  • Loading branch information
deepjyoti30-st committed Dec 3, 2024
1 parent fc2bc47 commit 26a333a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/setupAndTestBackendSDKWithFreeCore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ npm install
npm run build

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 multi="spec=- mocha-junit-reporter=~/test_report/junit-results.xml" echo "$TEST_FILES" | circleci tests run --command="xargs npx mocha mocha --node-option no-experimental-fetch --reporter mocha-multi --require test/test.mocha.env --timeout 40000 --no-config" --verbose --split-by=timings
API_PORT=$API_PORT TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root multi="spec=- mocha-junit-reporter=~/test_report/junit-results.xml" echo "$TEST_FILES" | circleci tests run --command="xargs npx mocha mocha --node-option no-experimental-fetch --reporter mocha-multi --timeout 40000 --no-config" --verbose --split-by=timings

# kill test-server
kill $(lsof -t -i:$API_PORT)
2 changes: 1 addition & 1 deletion .circleci/setupAndTestWithFreeCore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ cd ../project/
set -e

TEST_FILES=$(circleci tests glob "test/**/*.test.js")
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root multi="spec=- mocha-junit-reporter=./junit-results.xml" echo "$TEST_FILES" | circleci tests run --command="xargs npx mocha mocha --node-option no-experimental-fetch --reporter mocha-multi --require test/test.mocha.env --timeout 40000 --no-config" --verbose --split-by=timings
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root multi="spec=- mocha-junit-reporter=./junit-results.xml" echo "$TEST_FILES" | circleci tests run --command="xargs npx mocha mocha --node-option no-experimental-fetch --reporter mocha-multi --timeout 40000 --no-config" --verbose --split-by=timings
2 changes: 1 addition & 1 deletion .circleci/setupAndTestWithFrontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ cd ../../
npm i -d

TEST_FILES=$(circleci tests glob "test/**/*.test.js")
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root multi="spec=- mocha-junit-reporter=./junit-results.xml" echo "$TEST_FILES" | circleci tests run --command="xargs npx mocha mocha --node-option no-experimental-fetch --reporter mocha-multi --require test/test.mocha.env --timeout 40000 --no-config" --verbose --split-by=timings
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root multi="spec=- mocha-junit-reporter=./junit-results.xml" echo "$TEST_FILES" | circleci tests run --command="xargs npx mocha mocha --node-option no-experimental-fetch --reporter mocha-multi --timeout 40000 --no-config" --verbose --split-by=timings

if [[ $? -ne 0 ]]
then
Expand Down

0 comments on commit 26a333a

Please sign in to comment.