Skip to content

fix: make globalThis more compatible with jest #1956

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 4 commits into from
Sep 2, 2022

Conversation

sheremet-va
Copy link
Member

While investigating #756 I noticed we put our global state using another symbol. Our state is also incompatible with jest, because we have local expects.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
@sheremet-va sheremet-va requested a review from antfu September 2, 2022 11:06

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@sheremet-va sheremet-va merged commit 55049f4 into vitest-dev:main Sep 2, 2022
@sheremet-va sheremet-va deleted the fix/add-jest-compat branch September 2, 2022 11:52
antfu pushed a commit to poyoho/vitest that referenced this pull request Sep 4, 2022

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
* fix: make globalThis more compatible with jest

* chore: oops

* chore: cleanup

* chore: cleanup
travi added a commit to form8ion/vitest that referenced this pull request Sep 4, 2022

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
now that it has been made possible by
vitest-dev/vitest#1956
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

Successfully merging this pull request may close these issues.

None yet

1 participant