You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MutationRecord should be globally available, as it is in the browser.
To Reproduce
I have a test in my test suite that checks if MutationObserver callback gets called with an array of MutationRecord. Because it's not globally available, this test code:
Describe the bug
MutationRecord should be globally available, as it is in the browser.
To Reproduce
I have a test in my test suite that checks if MutationObserver callback gets called with an array of MutationRecord. Because it's not globally available, this test code:
is, in reality,
and results in an error:
As a temporary workaround, I can to import it manually into my module:
and it works just fine.
Expected behavior
MutationRecord to be globally available.
Screenshots
Commit with tests failing after replacing JSDom with Happy DOM:
wojtekmaj/react-hooks@8a95c2b
The text was updated successfully, but these errors were encountered: