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
Just a heads up that we're working on updating to jsdom@14 which includes MutationObserver for create-react-app v3. You can follow the progress at #6654.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is this a bug report?
Yes.
Did you try recovering your dependencies?
Yes.
Which terms did you search for in User Guide?
jsdom
testing
Environment
Steps to Reproduce
create-react-app jsdom-test
expect(window.MutationObserver).not.toBeUndefined();
to generatedApp.test.js
.npm run test
.Expected Behavior
npm run test
should pass as window.MutationObserver should be defined byjsdom
as tested using the following code:Actual Behavior
Test fails as
window.MutationObserver
is undefined.The text was updated successfully, but these errors were encountered: