Fork me on GitHub
#devcards
<
2016-11-17
>
rafaelzlisboa15:11:45

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?

rafaelzlisboa15:11:37

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