-
Notifications
You must be signed in to change notification settings - Fork 938
Migrate testing to rules-unit-testing #3378
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
🦋 Changeset is good to goLatest commit: 3b0c125 We got this. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
new Error('Expected request to fail, but it succeeded.') | ||
); | ||
}, | ||
(err: any) => { |
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.
We now make sure the error is a FirebaseError
with a message
that contains PERMISSION_DENIED
. This prevents connect failures from giving the illusion of security.
Binary Size ReportAffected SDKsTest Logs |
One question: How would you update the old package once this PR gets merged? For example, if we'd like to add a deprecation notice or have the methods print out a warning, how would we track and review those changes? |
@yuchenshi I believe that deprecation message is entirely managed by running |
What if we want to print a warning message when developers call the Also, although unlikely, what if we need to apply security patches? e.g. updating a dependency due to an open vulnerability report? |
@yuchenshi I would be fine to do a copy instead of a fork, I just want to know if @Feiyang1 has any problem with "dead" code sitting around in |
@Feiyang1 can you weigh in on the copy vs fork thing? Would it be alright if we had |
I'm fine with that. We can remove |
Hey there! So you want to contribute to a Firebase SDK?
Before you file this pull request, please read these guidelines:
Discussion
Googlers: see change rationale here
TODO:
testing
package (see Restore testing package #3556)firebase-admin
to create mock admin apps without settingGOOGLE_APPLICATION_CREDENTIALS
.initializeAdminApp()
Testing
quickstart-testing
although it was made difficult by the fact thatfile:
deps withpeerDependencies
don't play nice.API Changes
@firebase/testing
to@firebase/rules-unit-testing