-
Notifications
You must be signed in to change notification settings - Fork 895
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
Implement mockUserToken for Storage and fix bugs. #5282
Conversation
🦋 Changeset detectedLatest commit: b86fa54 The changes in this PR will be included in the next version bump. This PR includes changesets to release 18 packages
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 |
Changeset File Check
|
@@ -34,7 +35,13 @@ export interface DataSnapshot { | |||
|
|||
export interface Database { | |||
app: FirebaseApp; | |||
useEmulator(host: string, port: number): void; | |||
useEmulator( |
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.
Turns out I forgot this in #4792. Fixing in this PR.
Binary Size ReportAffected SDKs
Test Logs |
Size Analysis Report |
54101cd
to
b86fa54
Compare
This implements
mockUserToken
for Storage, and updates Firestore and Database for consistency. See below.It also ported the JWT format fix from #5002.
This PR had to make many minor changes to many packages and I'd appreciate a global review and approval.
Docs: All docstrings are already approved before or copies for approved docstrings before.
Testing
API Changes
API changes internally approved at go/firebase-rules-unit-testing-next-api (Googlers only). The only change after that is to allow a raw mock token string (go/safer-rules-unit-testing#heading=h.rhuum73tfz77 also Googlers only)