om

Please ask the channel first, not @dnolen directly!
peeja 2017-06-21T15:02:58.016819Z

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

peeja 2017-06-21T15:03:14.024465Z

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

peeja 2017-06-21T15:04:03.048740Z

Ah, perhaps https://github.com/bensu/cljs-react-test

peeja 2017-06-21T15:05:01.076152Z

but that may be out of date

anmonteiro 2017-06-21T15:11:08.242657Z

@peeja cljsjs/react-with-addons

peeja 2017-06-21T15:11:19.247806Z

That doesn't seem to include it

anmonteiro 2017-06-21T15:11:23.249761Z

which version?

peeja 2017-06-21T15:11:42.258136Z

15.4.2-2

anmonteiro 2017-06-21T15:12:38.283242Z

I think you want js/React.addons.TestUtils

peeja 2017-06-21T15:13:01.293531Z

Oh, hey, it does exist! Thanks!

anmonteiro 2017-06-21T15:13:03.294677Z

see https://github.com/compassus/compassus/blob/master/src/test/compassus/tests.cljc

👀 1
anmonteiro 2017-06-21T15:13:11.297784Z

we use the shallow renderer

peeja 2017-06-21T15:13:18.301321Z

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

peeja 2017-06-21T15:47:10.221185Z

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

anmonteiro 2017-06-21T15:47:38.233217Z

that’s the only renderer I know from React

anmonteiro 2017-06-21T15:48:06.245266Z

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

peeja 2017-06-21T15:49:06.271760Z

No, this one: https://www.npmjs.com/package/react-test-renderer