cljs-test integration hack conflicting with tools.namespace refresh
If we add matcher-combinators as source dependency of a pure clojure project (e.g. via deps :local/root), and try to call clojure.tools.namespace/refresh, it will try to load the namespace matcher-combinators.cljs-test, which requires cljs.test, leading to an error.
In the described scenario, what are your clojure.tools.namespace.repl/refresh-dirs?
Generally it's good to explicitly set them. Maybe if they're not, you'll give clojure.tools.namespace.repl/refresh a greater workload than strictly necessary.
Hope it helps!
I can confirm that this issue comes up with :local/root usage. Now with midje because the dependency got removed when moving to deps.edn.
setting clojure.tools.namespace.repl/refresh-dirs to the current project works to avoid this. I think this is the way to go, thanks for the suggestion @vemv