Closed viveleroi closed 1 year ago
Hey @viveleroi ! Thanks for the issue.
Here's my guess: in 1.10.0
I fixed a bug where I accidentally initialized ResizeObserver mock in the module itself, that means that just importing the package was enough to mock the ResizeObserver. If this was the behaviour you relied on in your code, I'm afraid you will need to adapt a little bit, try explicitly calling mockResizeObserver
where you need it and tell me how it goes! Sorry for the confusion!
Yup that solves it, thanks.
When updating this library I noticed that some of our chart tests (charts use visx and the resize component). They pass fine in 1.9.0 but fail in 1.10+.
I have the library configs setup like this: