r/javascript • • Sep 26 '17

React 16

https://facebook.github.io/react/blog/2017/09/26/react-v16.0.html
379 Upvotes

63 comments sorted by

View all comments

9

u/tonechild Sep 26 '17

Anyone know if this works with enzyme?

1

u/drom296 Sep 27 '17

so far: upgrading hasn't been smooth.

Upgrading to enzyme@3, requires a new adaptor system. Upgrading to react@16, breaks some other dependencies.

Of course, I'm doing this on a [email protected] project

1

u/tobegiannis Sep 27 '17

Just played around with an upgrade for a few mins. Seems like a pretty clunky way to get enzyme up an running. Do they expect me to import the adapter on every test file or have some kind of useless wrapper?

0

u/[deleted] Sep 27 '17

[deleted]

1

u/gaearon Sep 27 '17

Would be great if somebody could send a PR with this info to CRA user guide!

1

u/tobegiannis Sep 27 '17

Thanks I am not using cra but I stumbled upon a jest config for test startup scripts and got it working.