Skip to content

Commit

Permalink
test: add more debug options into ci
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Sep 29, 2024
1 parent 3d68164 commit 6865bd4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .circleci/config_continue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ jobs:
- store_artifacts:
path: test_report/backend.log
destination: logs
- store_artifacts:
path: test_report/screenshots
destination: screenshots
- store_artifacts:
path: test_report/react-logs
destination: react-logs
- slack/status
test-success:
docker:
Expand Down
6 changes: 6 additions & 0 deletions .circleci/setupAndTestWithAuthReact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ cd ../../../supertokens-auth-react/
MOCHA_FILE=test_report/report_node.xml SKIP_OAUTH=true npm run test-with-non-node
if [[ $? -ne 0 ]]
then
mkdir -p ../project/test_report/screenshots
mv ./test_report/screenshots/* ../project/test_report/screenshots/

mkdir -p ../project/test_report/react-logs
mv ./test_report/logs/* ../project/test_report/react-logs/

echo "test failed... exiting!"
rm -rf ./test/server/node_modules/supertokens-node
git checkout HEAD -- ./test/server/package.json
Expand Down
2 changes: 1 addition & 1 deletion test/auth-react-server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ function initST({ passwordlessConfig } = {}) {
}),
]);

recipeList.push(["oauth2", OAuth2Provider.init()]);
recipeList.push(["oauth2provider", OAuth2Provider.init()]);

SuperTokens.init({
appInfo: {
Expand Down

0 comments on commit 6865bd4

Please sign in to comment.