   "Runs the tests in a browser environment."
   [o opt    VAL kw "The optimization level for the cljs compiler."
    e js-env VAL kw "The js environment."]
-  (let [opt (or opt :none)]
+  (let [opt    (or opt :none)
+        js-env (or js-env :slimer)]
     (comp (testing)
-          (boot-cljs-test/test-cljs :js-env        (or js-env :slimer)
+          (boot-cljs-test/test-cljs :js-env        js-env
                                     :namespaces    cljs-test-namespaces
                                     :optimizations opt
                                     :cljs-opts     cljs-compiler-opts))))

   t target       VAL kw   "The target for the cljs compiler."
   o opt          VAL kw   "The optimization level for the cljs compiler."
   s self-hosted?     bool "True if self-hosted."]
  (let [platform (or platform :clj)]
    (case platform
      :clj  (test-clj)
      :cljs (case (or target :browser)
              :browser (test-browser :opt    opt
                                     :js-env :slimer)
              :nodejs  (test-node :opt          opt

  "Compiles the cljs source files."
  [o opt VAL kw  "The compiler optimization level."
   i id  VAL str "The id of the build."]
  (let [opt (or opt :none)
        id  (or id "browser/index")]
    (boot-cljs/cljs
      :ids              [(fix-slashes id)]
      :compiler-options (assoc cljs-compiler-opts :optimizations opt))))

(deftask run-browser-repl
