kaocha

Official support channel: https://clojureverse.org/c/projects/kaocha
vikeri 2019-10-03T14:36:08.017200Z

Tips for mocking out functions and vars with kaocha? Was considering using :kaocha.hooks/wrap-run and with-redefs but got a “wrong arity” error for the wrap-run function.

vikeri 2019-10-03T14:37:32.017800Z

Wrong number of args (1) passed to: main/wrap-run, thought the wrap-run should pass two args, run and config.

lread 2019-10-03T14:40:55.019Z

Heya @vilkeri, I am not if you have a special use case, but the last time I did this, I did not do anything special or kaocha specific: https://github.com/cljdoc/cljdoc/blob/7f3985e139905e729803e2d22dc9491d5907e92c/test/cljdoc/util/sqlite_cache_test.clj#L39

vikeri 2019-10-03T14:55:33.019800Z

@lee Yeah I just wanted to redef functions globally that are called from a bunch of different places.