-
-
Notifications
You must be signed in to change notification settings - Fork 5
Add firebase emulator, Add registration script, Add signup spec #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@n3c777 is attempting to deploy a commit to the Compass Team on Vercel. A member of the Team first needs to authorize it. |
# Conflicts: # scripts/e2e.sh
| export const auth = getAuth(app) | ||
|
|
||
| if (IS_FIREBASE_EMULATOR) { | ||
| connectAuthEmulator(auth, 'http://127.0.0.1:9099', { disableWarnings: true }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was one key missing line.
| export FIREBASE_AUTH_EMULATOR_HOST=127.0.0.1:9099 | ||
| export FIREBASE_STORAGE_EMULATOR_HOST=127.0.0.1:9199 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may also have been one key missing line.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
CI test (which includes E2E) just passed on github—great! |

This pr includes a few components.
Registration script registers a user through frirebase auth using the emulator. This should be ran along with userCreation.ts. In the future these two need to be further synchronized as userCreation will need the ID created from setup-auth.
Signup spec registers a user then uses the deleteUserFixture to delete the user.
Firebase emulator is mainly a modification of firebase.json and init-admin.ts. It will make future e2e testing a lot easier. However in its current form it isn't working.