Replies: 1 comment 6 replies
-
Does setting the global work? globalThis.window = testWindow.window |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use happy-dom to test my preact application and it gets
window
anddocument
fromglobalThis
Is there a way to inject the window or document I want Preact to use for rendering?
I'd like to be able to specify the
document
instanceBeta Was this translation helpful? Give feedback.
All reactions