Skip to content

Commit

Permalink
fix: mocha
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Nov 21, 2024
1 parent 478afad commit 0bbf99d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .circleci/setupAndTestWithAuthReact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ mkdir -p ~/test_report/logs
mkdir -p ~/test_report/react-logs
mkdir -p ~/test_report/screenshots

npm i -g mocha

echo "Running tests with React 18"
# Run node server in background.
if [[ "${SERVER_STARTED}" != "true" ]]; then
Expand Down Expand Up @@ -103,7 +101,7 @@ if ! [[ -z "${CI}" ]]; then
echo "Selected spec files: $SPEC_FILES, $CIRCLE_NODE_TOTAL/$CIRCLE_NODE_INDEX"
fi

SCREENSHOT_ROOT=~/test_report/screenshots APP_SERVER=$apiPort TEST_MODE=testing mocha --bail=$BAIL --require @babel/register --require test/test.mocha.env --timeout 40000 --no-config $SPEC_FILES
SCREENSHOT_ROOT=~/test_report/screenshots APP_SERVER=$apiPort TEST_MODE=testing npx mocha --bail=$BAIL --require @babel/register --require test/test.mocha.env --timeout 40000 --no-config $SPEC_FILES
testPassed=$?;

if [[ $testPassed -ne 0 ]]
Expand Down
4 changes: 1 addition & 3 deletions .circleci/setupAndTestWithAuthReactWithDjango.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ mkdir -p ~/test_report/logs
mkdir -p ~/test_report/react-logs
mkdir -p ~/test_report/screenshots

npm i -g mocha

echo "Running tests with React 18"
# Run node server in background.
if [[ "${SERVER_STARTED}" != "true" ]]; then
Expand Down Expand Up @@ -105,7 +103,7 @@ if ! [[ -z "${CI}" ]]; then
echo "Selected spec files: $SPEC_FILES, $CIRCLE_NODE_TOTAL/$CIRCLE_NODE_INDEX"
fi

SCREENSHOT_ROOT=~/test_report/screenshots APP_SERVER=$apiPort TEST_MODE=testing mocha --bail=$BAIL --require @babel/register --require test/test.mocha.env --timeout 40000 --no-config $SPEC_FILES
SCREENSHOT_ROOT=~/test_report/screenshots APP_SERVER=$apiPort TEST_MODE=testing npx mocha --bail=$BAIL --require @babel/register --require test/test.mocha.env --timeout 40000 --no-config $SPEC_FILES
testPassed=$?;

if [[ $testPassed -ne 0 ]]
Expand Down
4 changes: 1 addition & 3 deletions .circleci/setupAndTestWithAuthReactWithFlask.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ mkdir -p ~/test_report/logs
mkdir -p ~/test_report/react-logs
mkdir -p ~/test_report/screenshots

npm i -g mocha

echo "Running tests with React 18"
# Run node server in background.
if [[ "${SERVER_STARTED}" != "true" ]]; then
Expand Down Expand Up @@ -105,7 +103,7 @@ if ! [[ -z "${CI}" ]]; then
echo "Selected spec files: $SPEC_FILES, $CIRCLE_NODE_TOTAL/$CIRCLE_NODE_INDEX"
fi

SCREENSHOT_ROOT=~/test_report/screenshots APP_SERVER=$apiPort TEST_MODE=testing mocha --bail=$BAIL --require @babel/register --require test/test.mocha.env --timeout 40000 --no-config $SPEC_FILES
SCREENSHOT_ROOT=~/test_report/screenshots APP_SERVER=$apiPort TEST_MODE=testing npx mocha --bail=$BAIL --require @babel/register --require test/test.mocha.env --timeout 40000 --no-config $SPEC_FILES
testPassed=$?;

if [[ $testPassed -ne 0 ]]
Expand Down

0 comments on commit 0bbf99d

Please sign in to comment.