fwouts / react-screenshot-test

A dead simple library to screenshot test React components
https://www.npmjs.com/package/react-screenshot-test
MIT License
618 stars 24 forks source link

chore: update react@latest #306

Closed ghost closed 3 years ago

ghost commented 3 years ago

Changes:

How I Tested:

Closes https://github.com/fwouts/react-screenshot-test/issues/305

fwouts commented 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

ghost commented 3 years ago

Updated the branch to support both versions. CC @fwouts

fwouts commented 3 years ago

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).