Open rubenslopes opened 4 years ago
Whoops, sorry I missed this! Wasn't subscribed to the repo.
What version of node?
I've run into this before, maybe six months or so ago on another React project.
Issue iirc was jest's jsdom dependency does not have MutationObserver. I think maybe I just polyfilled it as a quickfix.
More info here: https://github.com/testing-library/dom-testing-library/releases/tag/v7.0.0
12.18.3
The solution for me was this one. I updated react-scripts to the latest version and it worked.
Installing the jest-environment-jsdom-sixteen
package and changing the test script worked for me, see issue
"test": "craco test --env=jest-environment-jsdom-sixteen",
I've tried to update outdated packages but it does not solved the problem
LOG