Skip to content

Conversation

@n3c777
Copy link
Collaborator

@n3c777 n3c777 commented Dec 2, 2025

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.

@vercel
Copy link

vercel bot commented Dec 2, 2025

@n3c777 is attempting to deploy a commit to the Compass Team on Vercel.

A member of the Team first needs to authorize it.

@MartinBraquet
Copy link
Member

Works great with npx tsx setup-auth.ts.
image

I fix the emulator and made the tests pass. Lmk if you'd like to do other things in this PR. I think we could merge it soon if that looks good to you, so as to secure the good current state of the tests and emulator.

export const auth = getAuth(app)

if (IS_FIREBASE_EMULATOR) {
connectAuthEmulator(auth, 'http://127.0.0.1:9099', { disableWarnings: true })
Copy link
Member

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.

Comment on lines +27 to +28
export FIREBASE_AUTH_EMULATOR_HOST=127.0.0.1:9099
export FIREBASE_STORAGE_EMULATOR_HOST=127.0.0.1:9199
Copy link
Member

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
Copy link

codecov bot commented Dec 5, 2025

Codecov Report

❌ Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
backend/shared/src/init-admin.ts 0.00% 4 Missing ⚠️
backend/api/src/helpers/endpoint.ts 0.00% 2 Missing ⚠️
common/src/envs/constants.ts 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@MartinBraquet
Copy link
Member

CI test (which includes E2E) just passed on github—great!

@n3c777 n3c777 marked this pull request as ready for review December 6, 2025 22:31
@MartinBraquet MartinBraquet merged commit ef7665c into CompassConnections:main Dec 6, 2025
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants