This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-14
Channels
- # adventofcode (1)
- # babashka (60)
- # beginners (107)
- # calva (11)
- # cider (3)
- # clara (11)
- # clj-kondo (6)
- # cljs-dev (33)
- # clojure (70)
- # clojure-dev (4)
- # clojure-europe (3)
- # clojure-italy (2)
- # clojure-kc (1)
- # clojure-losangeles (12)
- # clojure-nl (4)
- # clojure-spec (32)
- # clojure-uk (35)
- # clojuredesign-podcast (1)
- # clojurescript (28)
- # core-logic (4)
- # cursive (5)
- # datomic (34)
- # devcards (1)
- # emacs (16)
- # events (13)
- # fulcro (15)
- # graalvm (5)
- # graphql (3)
- # jobs (8)
- # joker (2)
- # kaocha (17)
- # malli (6)
- # music (3)
- # off-topic (58)
- # protorepl (7)
- # re-frame (28)
- # rewrite-clj (9)
- # shadow-cljs (102)
- # spacemacs (3)
- # sql (20)
- # tools-deps (9)
I need some help with kaocha and ClojureScript… my test.edn
looks like this:
#kaocha/v1
{:tests [{:id :unit-cljs
:type :kaocha.type/cljs
:test-paths ["test"]
}]}
and I try to run the tests with: lein kaocha unit-cljs
Error:
No such suite: :unit-cljs, valid options: :unit.
Error encountered performing task 'run' with profile(s): 'base,system,user,provided,dev,kaocha'
Suppressed exit
Next problem:
Exception in thread "main" java.lang.RuntimeException: Unable to resolve symbol: PrintWriter-on in this context, compiling:(kaocha/cljs/queue_eval_loop.clj:59:38)
at clojure.lang.Compiler.analyze(Compiler.java:6792)
at clojure.lang.Compiler.analyze(Compiler.java:6729)
that looks like a version mismatch, not sure of which project but I'm guessing clojurescript
Okay, makes a difference, but 🙈 next problem:
$ lein kaocha unit-cljs
[E]
Randomized with --seed 510488758
ERROR in unit-cljs (analyzer.cljc:3849)
Exception: clojure.lang.ExceptionInfo: null
#:clojure.error{:source #object[java.io.File 0x3f498899 "test/foo/core_test.cljs"], :line 1, :column 1, :phase :compilation}
at cljs.analyzer$analyze_seq_STAR__wrap.invokeStatic (analyzer.cljc:3849)
cljs.analyzer$analyze_seq_STAR__wrap.invoke (analyzer.cljc:3848)
core_test.cljs
:
(ns foo.core-test
(:require [clojure.test :refer :all]
))
(deftest a-test
(testing "FIXME, I fail."
(is (= 0 1))))