you could write a totally custom helper function/macro for checking the thrown exception without using (is (thrown? ,,,))
, smt. like this:
(defn is-thrown
[expr-under-test expected-stuff-about-the-exception]
(try
(expr-under-test)
(catch e
; assert the exception here; test can be failed using (is nil "message here")
))
; fail test if exception was not thrown at all
)
then use it in the tests like this: (is-thrown #(my-func 1 2 3) {:expected-ex-data {}})
yeah, this seems like the way to go, thanks for the ideas!