I want to automate the following test scenario:

1. I render some arbitrary React component tree.
2. I make some action (scroll some container / click a button / ...)
3. I assert if any components have re-rendered since taking action `2.`

What would be a good way to do this? We currently use `Jest`, `Cypress` and `react-test-renderer` in our project - it would be great to find a way to this using those. But this is not strictly necessary.

I need this to catch improperly memoized `useSelector` calls high up the component tree, which result in most of the app re-rendering - we keep running into this problem over and over.