Skip to content

Preserve user input in initializeTestApp #3923

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

Merged
merged 1 commit into from
Oct 12, 2020
Merged

Conversation

samtstern
Copy link
Contributor

@samtstern samtstern commented Oct 12, 2020

Discussion

Fixes #3920

Previous to this change we would delete the uid property from the object before copying it, which is destructive if the user is re-using the object.

Testing

  • Added unit test.

API Changes

  • None

@changeset-bot
Copy link

changeset-bot bot commented Oct 12, 2020

🦋 Changeset detected

Latest commit: 7dec673

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@firebase/rules-unit-testing Patch

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

@google-oss-bot
Copy link
Contributor

Binary Size Report

Affected SDKs

  • @firebase/rules-unit-testing

    Type Base (88e1f88) Head (b0a3f42) Diff
    main 7.84 kB 7.86 kB +18 B (+0.2%)

Test Logs

@google-oss-bot
Copy link
Contributor

Size Analysis Report

Affected Products

No changes between base commit (88e1f88) and head commit (b0a3f42).

Test Logs

@yuchenshi yuchenshi merged commit cb28261 into master Oct 12, 2020
@google-oss-bot google-oss-bot mentioned this pull request Oct 13, 2020
@firebase firebase locked and limited conversation to collaborators Nov 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

initializeTestApp from @firebase/rules-unit-testing with jest, file scope variables are unset
3 participants