Fork me on GitHub
#om
<
2017-06-21
>
peeja15:06:58

Anyone know what the best way is to get ReactTestRenderer in CLJS?

peeja15:06:14

It doesn't appear to come with the cljsjs React package

peeja15:06:01

but that may be out of date

anmonteiro15:06:08

@peeja cljsjs/react-with-addons

peeja15:06:19

That doesn't seem to include it

anmonteiro15:06:23

which version?

anmonteiro15:06:38

I think you want js/React.addons.TestUtils

peeja15:06:01

Oh, hey, it does exist! Thanks!

anmonteiro15:06:11

we use the shallow renderer

peeja15:06:18

For some reason Chrome wouldn't autocomplete it, so I thought it was missing 😛

peeja15:06:10

@anmonteiro Looks like that only includes the shallow renderer, not the full test renderer. Is that right?

anmonteiro15:06:38

that’s the only renderer I know from React

anmonteiro15:06:06

are you looking for the enzyme test renderer? I think that’s Airbnb