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
Hello, I'm using HappyDom instead of JSDOM and I have following issue.
when I do something like await screen.findByText(optionLabel);
observer.observe is not a function TypeError: observer.observe is not a function
at C:\Ohpen\cloned-2\mfes-broker-app-angular\src\node_modules\@testing-library\dom\dist\wait-for.js:96:16
HappyDom is supporting MutationObserver and I guess JSDOM was not out of the box hance some logic there is used.
Could it be fixed? Or can I fix it somehow myself?
The text was updated successfully, but these errors were encountered:
We expect the tests to be run in a DOM-like environment.
This also means that there's a MutationObserver observer available to react to dom changes.
A workaround is to run all tests in a "fake timers context", which doesn't use the observer.
Hello, I'm using HappyDom instead of JSDOM and I have following issue.
when I do something like
await screen.findByText(optionLabel);
observer.observe is not a function TypeError: observer.observe is not a function
at C:\Ohpen\cloned-2\mfes-broker-app-angular\src\node_modules\@testing-library\dom\dist\wait-for.js:96:16
HappyDom is supporting MutationObserver and I guess JSDOM was not out of the box hance some logic there is used.
Could it be fixed? Or can I fix it somehow myself?
The text was updated successfully, but these errors were encountered: