kaocha

Official support channel: https://clojureverse.org/c/projects/kaocha
plexus 2020-07-23T06:17:46.452700Z

Definitely should be at the top level, this doesn't work?

#kaocha/v1
{:plugins [:preloads]
 :kaocha.plugin.preloads/ns-names [...]}

plexus 2020-07-23T06:18:32.452900Z

plugin is really simple

(defplugin kaocha.plugin/preloads
  (pre-load [config]
    (when-let [ns-names (::ns-names config)]
      (apply require ns-names))
    config))

plexus 2020-07-23T06:19:17.453100Z

but... I guess you're trying to preload cljs code? that won't work

plexus 2020-07-23T06:21:49.453300Z

but you might be able to use the clojurescript compiler preloads option

plexus 2020-07-23T06:22:45.453500Z

#kaocha/v1
{:tests [{:id   :unit
          :type :kaocha.type/clojure.test}
         {:id   :unit-cljs
          :type :kaocha.type/cljs
          :cljs/compiler-options {:preloads [...]}}]}