Anyone know what the best way is to get ReactTestRenderer
in CLJS?
It doesn't appear to come with the cljsjs React package
Ah, perhaps https://github.com/bensu/cljs-react-test
but that may be out of date
@peeja cljsjs/react-with-addons
That doesn't seem to include it
which version?
15.4.2-2
I think you want js/React.addons.TestUtils
Oh, hey, it does exist! Thanks!
see https://github.com/compassus/compassus/blob/master/src/test/compassus/tests.cljc
we use the shallow renderer
For some reason Chrome wouldn't autocomplete it, so I thought it was missing 😛
@anmonteiro Looks like that only includes the shallow renderer, not the full test renderer. Is that right?
that’s the only renderer I know from React
are you looking for the enzyme test renderer? I think that’s Airbnb
No, this one: https://www.npmjs.com/package/react-test-renderer