devcards

Devcards aims to provide a visual REPL experience for ClojureScript https://github.com/bhauman/devcards
2016-11-17T15:25:45.000156Z

what’s the best way to have deftests and defcards on the same namespace? say i have a test namespace, so i want:

(defcard my-widget [:div stuff])`

(deftest (testing “my widget has a div”))
is there a way for the devcards deftest to do assertions on what’s declared on the defcard, instead of having to duplicate the logic to render the widget?

2016-11-17T15:26:37.000157Z

(in a way that works when running the test build with lein doo)