Closed ghost closed 3 years ago
Thank you for the PR @amatyas001!
I believe this would inadvertently break support for React 16 though, I think we may need this approach instead: https://stackoverflow.com/a/60828558/911298
Updated the branch to support both versions. CC @fwouts
Sorry for the delay @amatyas001. I just sent a PR on your branch to simplify it a bit.
By the way, I just released https://github.com/zenclabs/viteshot which you might be interested in. It aims to replace react-screenshot-test eventually (it's faster and more powerful).
Changes:
React
from ^16.x.x to ^17.x.xReactDOM
from ^16.x.x to ^17.x.xHow I Tested:
yarn test
successfulCloses https://github.com/fwouts/react-screenshot-test/issues/305