Fork me on GitHub

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?


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