Skip to content
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

Questions related to testing Firebase functions #18

Open
dvdhfnr opened this issue Oct 8, 2021 · 0 comments
Open

Questions related to testing Firebase functions #18

dvdhfnr opened this issue Oct 8, 2021 · 0 comments

Comments

@dvdhfnr
Copy link

dvdhfnr commented Oct 8, 2021

Hi,

I understand that testing the Firestore security rules works fine with a "fake" project id (TEST_FIREBASE_PROJECT_ID).

Why do we need the real project id for testing firebase functions with the emulator (REAL_FIREBASE_PROJECT_ID )?
Are there any plans to get rid of this; or is there a good reason why it is like this?

Related, the presented colab "combines" the tests of the security rules and the functions in one file. The unit test documentation at https://firebase.google.com/docs/functions/unit-testing describes a fundamentally different workflow. Which is the recommended one? Is one of them outdated?

Thanks a lot for your answers in advance!

craigfisk added a commit to Marmalade-ai/emulators-codelab that referenced this issue Jul 3, 2024
…lculateCart" so that all 5 tests now pass, and expanded console.log message in #51 to say "Cart total successfully recalculated!".
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

No branches or pull requests

1 participant