is there any easy way to do "beforeEach" blocks for tests?
I'd love to not have to do all of my set-up over and over again for a given batch of tests
You might be looking for use-fixtures
https://clojuredocs.org/clojure.test/use-fixtures
those are per-file, and i was hoping for per deftest
block
even the :each
applies to every single deftest
in a given file
maybe i'll write up a macro to do this for me, lol
macros, the duct tape of Clojure
the last project I had which had some complex fixture setup tasks we ended up just writing a few helpers functions that we used in the test code that needed it. it felt a bit wrong coming from other environments that really emphasize separating fixtures and tests, but it worked fine
yeah, seems like the best method. thanks