Skip to content

Conversation

henrijoss
Copy link

Seems like the mutation callback gets executed after the document is gone in vitest which causes following error:
Error: Uncaught [ReferenceError: document is not defined]

- if (!document) {
+ if (typeof document === 'undefined') {

By changing the condition like this the check should work as intended.

@leifmarcus
Copy link

Are there any updates on this? This fix would be really nice to have.

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.

2 participants