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

fix: resolve firebase packages to CommonJS in web tests #6532

Merged
merged 3 commits into from
Oct 5, 2022

Conversation

jtoar
Copy link
Contributor

@jtoar jtoar commented Oct 5, 2022

Closes #6452. Firebase packages don't export a browser CommonJS version, so Jest throws the "Jest encountered an unexpected token" error if they're used in web tests since it tries to import an ESM version. Since we offer a setup command for firebase auth, we should fix this at the framework-level so that every user that setups firebase auth doesn't have to. I also removed uuid because more recent versions now export a browser CommonJS version.

@jtoar jtoar added topic/testing release:fix This PR is a fix labels Oct 5, 2022
@jtoar jtoar self-assigned this Oct 5, 2022
@jtoar jtoar added this to the next-release-patch milestone Oct 5, 2022
@jtoar jtoar merged commit f2d57b2 into main Oct 5, 2022
@jtoar jtoar deleted the ds-fix-firebase-resolution-in-tests branch October 5, 2022 21:46
@jtoar jtoar modified the milestones: next-release-patch, v3.1.1 Oct 5, 2022
jtoar added a commit that referenced this pull request Oct 5, 2022
jtoar added a commit that referenced this pull request Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Bug]: Web (Jest) tests will fail in v3.x if certain packages are used
1 participant