hi everyone, i've written a library for visual testing of devcards. screenshot, compare and assert your application's presentation! https://github.com/oliyh/kamera
wondering if there are good resources on using devcards with re-frame … I can’t see anything on the github other than there are problems 😉
and - keeping it real (i.e. lazy) - I don’t want to use forks of devcards or re-frame
i tend to write my render fns pure, so they don't have any integration with re-frame at all, and the render fns are the things i make devcards for
if i wanted to test behaviour i might be more inclined to write a re-frame unit test or an enzyme test
(i wrote a blog post about the approach here: https://juxt.pro/blog/posts/cljs-apps.html)
Thanks @oliy I’ll check it out
FYI I came back to devcards after rewatching @bhauman’s StrangeLoop video
And he emphasises the react integration
Maybe these days it’s down played?
^ Do you mean re-frame or react? I've not seen that talk
He said react
React begets reagent begets re-frame though
I looked ay your post - very well written
I’ll need to sleep on whether I can use that approach on my project though since there are some dynamic UI aspects that flow from subscriptions
I think @bhauman may have used reagent in the talk but need to double check
thanks. it's usually not possible to arrange everything like that, but that's what i aim for. the more complicated bits sometimes do have to remain as they are
Agreed and when they can, it seems like a great approach that will work on many UIs