   [o opt          VAL kw   "The optimization level for the cljs compiler."
    s self-hosted?     bool "True if self-hosted."]
   (let [opt (or opt :none)]
-    (comp (boot-tools-deps/deps :aliases [:test])
+    (comp (testing)
           (if self-hosted?
             (with-pass-thru fileset
               (proc "lumo"

   e js-env VAL kw "The js environment."]
  (let [opt    (or opt :none)
        js-env (or js-env :slimer)]
    (comp (boot-tools-deps/deps :aliases [:test])
          (boot-cljs-test/test-cljs :js-env        js-env
                                    :namespaces    cljs-test-namespaces
                                    :optimizations opt

(merge-env!
  :resource-paths #{"src/main/cljc"
                    "src/spec/cljc"
                    "src/main/js"}
  :dependencies   '[;; Clojure and ClojureScript
                    [org.clojure/clojure         "1.9.0"]
                    [org.clojure/clojurescript   "1.9.946"]

                    ;; utility
                    [moxaj/macrowbar             "0.1.2"]

                    ;; testing
                    [org.clojure/test.check      "0.10.0-alpha1" :scope "test"]

                    ;; dev
                    [nodisassemble               "0.1.3" :scope "test"]

                    ;; documentation
                    [boot-codox                  "0.10.3" :scope "test"]

                    ;; build script
                    [adzerk/boot-test            "1.2.0" :scope "test"]
                    [adzerk/boot-reload          "0.5.1" :scope "test"]
                    [adzerk/boot-cljs            "2.0.0" :scope "test"]
                    [adzerk/boot-cljs-repl       "0.3.3" :scope "test"]
                    [pandeiro/boot-http          "0.8.3" :scope "test"]
                    [crisptrutski/boot-cljs-test "0.3.0" :scope "test"]
                    [com.cemerick/piggieback     "0.2.1" :scope "test"]
                    [weasel                      "0.7.0" :scope "test"]
                    [org.clojure/tools.nrepl     "0.2.13" :scope "test"]]
  :repositories   [["clojars" {:url      "https://clojars.org/repo"
                               :username (System/getenv "CLOJARS_USER")
                               :password (System/getenv "CLOJARS_PASS")}]])

(require '[boot.util :as boot-util]
         '[adzerk.boot-test :as boot-test]
