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: export Window interface in jsdom environment #925

Merged
merged 1 commit into from Mar 13, 2022

Conversation

wuzzeb
Copy link
Contributor

@wuzzeb wuzzeb commented Mar 11, 2022

Using the jsdom environment, some one of my dependencies has code such as window instanceof Window (specifically recoil), and with vitest and jsdom it was giving a Window not defined error.

The jsdom environment should add the Window with a capital W interface to the global environment.

@netlify
Copy link

netlify bot commented Mar 11, 2022

✔️ Deploy Preview for vitest-dev ready!

🔨 Explore the source changes: 36d4cba

🔍 Inspect the deploy log: https://app.netlify.com/sites/vitest-dev/deploys/622bae5032f4e700081facad

😎 Browse the preview: https://deploy-preview-925--vitest-dev.netlify.app

@antfu antfu merged commit 1a2dfd8 into vitest-dev:main Mar 13, 2022
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

2 participants