MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/72lh17/react_16/dnkca3m/?context=3
r/javascript • u/batmansmk • Sep 26 '17
63 comments sorted by
View all comments
9
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.
1
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.
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.
0
[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.
Would be great if somebody could send a PR with this info to CRA user guide!
Thanks I am not using cra but I stumbled upon a jest config for test startup scripts and got it working.
9
u/tonechild Sep 26 '17
Anyone know if this works with enzyme?