Skip to content

Commit 5a5ef46

Browse files
Merge pull request #282 from supertokens/fix/install-after-st-node
fix: Run npm i after installing supertokens node to fix tests
2 parents 3caad92 + a20e3bd commit 5a5ef46

7 files changed

+11
-11
lines changed

.circleci/setupAndTestWithAuthReact.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ git checkout $2
5151
npm run init > /dev/null
5252
(cd ./examples/for-tests && npm run link) # this is there because in linux machine, postinstall in npm doesn't work..
5353
cd ./test/server/
54-
npm i -d
5554
npm i git+https://github.com:supertokens/supertokens-node.git#$3
55+
npm i
5656
cd ../../../project/tests/auth-react/fastapi-server
5757
export PYTHONPATH="${PYTHONPATH}:/root/project"
5858
uvicorn app:app --host 0.0.0.0 --port 8083 &

.circleci/setupAndTestWithAuthReactWithDjango.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ git checkout $2
5151
npm run init > /dev/null
5252
(cd ./examples/for-tests && npm run link) # this is there because in linux machine, postinstall in npm doesn't work..
5353
cd ./test/server/
54-
npm i -d
5554
npm i git+https://github.com:supertokens/supertokens-node.git#$3
55+
npm i
5656
cd ../../../project/tests/auth-react/django3x
5757
export PYTHONPATH="${PYTHONPATH}:/root/project"
5858
uvicorn mysite.asgi:application --port 8083 &

.circleci/setupAndTestWithAuthReactWithFlask.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ git checkout $2
5151
npm run init > /dev/null
5252
(cd ./examples/for-tests && npm run link) # this is there because in linux machine, postinstall in npm doesn't work..
5353
cd ./test/server/
54-
npm i -d
5554
npm i git+https://github.com:supertokens/supertokens-node.git#$3
55+
npm i
5656
cd ../../../project/tests/auth-react/flask-server
5757
export PYTHONPATH="${PYTHONPATH}:/root/project"
5858
python3 app.py --port 8083 &

.circleci/setupAndTestWithFrontend.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ pid=$!
5555
uvicorn app:app --host 0.0.0.0 --port 8082 &
5656
pid2=$!
5757
cd ../../../../supertokens-website/test/server
58-
npm i -d
5958
npm i git+https://github.com:supertokens/supertokens-node.git#$3
59+
npm i
6060
cd ../../
61-
npm i -d
61+
npm i
6262
SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test
6363
if [[ $? -ne 0 ]]
6464
then

.circleci/setupAndTestWithFrontendWithDjango.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ pid=$!
5555
uvicorn mysite.asgi:application --port 8082 &
5656
pid2=$!
5757
cd ../../../../supertokens-website/test/server
58-
npm i -d
5958
npm i git+https://github.com:supertokens/supertokens-node.git#$3
59+
npm i
6060
cd ../../
61-
npm i -d
61+
npm i
6262
SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test
6363
if [[ $? -ne 0 ]]
6464
then

.circleci/setupAndTestWithFrontendWithDjango2x.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ pid=$!
5555
gunicorn mysite.wsgi --bind 0.0.0.0:8082 &
5656
pid2=$!
5757
cd ../../../../supertokens-website/test/server
58-
npm i -d
5958
npm i git+https://github.com:supertokens/supertokens-node.git#$3
59+
npm i
6060
cd ../../
61-
npm i -d
61+
npm i
6262
SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test
6363
if [[ $? -ne 0 ]]
6464
then

.circleci/setupAndTestWithFrontendWithFlask.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ pid=$!
5555
python3 app.py --port 8082 &
5656
pid2=$!
5757
cd ../../../../supertokens-website/test/server
58-
npm i -d
5958
npm i git+https://github.com:supertokens/supertokens-node.git#$3
59+
npm i
6060
cd ../../
61-
npm i -d
61+
npm i
6262
SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test
6363
if [[ $? -ne 0 ]]
6464
then

0 commit comments

Comments
 (0)