Liking cljdoc? Tell your friends :D

kaocha-cljs

CircleCI cljdoc badge Clojars Project codecov

ClojureScript support for Kaocha.

Quickstart

  • Add kaocha-cljs as a dependency
;; deps.edn
{:deps {lambdaisland/kaocha {...}
        lambdaisland/kaocha-cljs {...}}}

Note that you must be using at least Clojure 1.10.

  • Configure a ClojureScript test suite
;; tests.edn
#kaocha/v1
{:tests [{:id :unit-cljs
          :type :kaocha.type/cljs
          ;; :test-paths ["test"]
          ;; :cljs/timeout 10000                        ; 10 seconds, the default
          ;; :cljs/repl-env cljs.repl.node/repl-env     ; node is the default
          ;; :cljs/repl-env cljs.repl.browser/repl-env
          }]}

For nodejs, install ws and isomorphic-ws

npm i isomorphic-ws ws

Run your tests

clojure -m kaocha.runner unit-cljs

License

Copyright © 2018 Arne Brasseur

Available under the terms of the Eclipse Public License 1.0, see LICENSE.txt

Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close