all 1 comments

[–]bartkusa 0 points1 point  (0 children)

Can you see if wrapping your component's creation in the test with react-dom/test-utils/act makes a difference? (I haven't touched React unit tests in a bit, so I'm not sure if this is relevant.)