This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-07
Channels
- # announcements (10)
- # babashka (39)
- # beginners (230)
- # calva (16)
- # cider (20)
- # clara (4)
- # cljs-dev (16)
- # clojure (35)
- # clojure-europe (8)
- # clojure-filipino (5)
- # clojure-france (1)
- # clojure-nl (6)
- # clojure-uk (9)
- # clojuredesign-podcast (1)
- # clojurescript (55)
- # clojurewerkz (1)
- # core-async (13)
- # cursive (1)
- # data-science (1)
- # datomic (4)
- # events (1)
- # fulcro (26)
- # jobs-discuss (1)
- # kaocha (3)
- # malli (53)
- # observability (9)
- # off-topic (1)
- # project-updates (1)
- # re-frame (15)
- # reagent (1)
- # reitit (11)
- # rum (8)
- # sci (29)
- # shadow-cljs (7)
- # vim (12)
- # xtdb (13)
Hi, I am having an issue with kaocha-cljs. I get an Kaocha ClojureScript client failed connecting bac
with {:kaocha.testable/id :unit-cljs, :cljs/repl-env cljs.repl.node/repl-env, :cljs/compiler-options {:target :nodejs}}
when trying to run tests. I did npm install ws
, clojure, clojurescript, kaocha & kaocha-cljs are in the classpath. My test.edn looks like this:
#kaocha/v1
{:tests [{:id :unit-clj
:source-paths ["src"]
:test-paths ["test"]
:ns-patterns ["-test$"]}
{:id :unit-cljs
:type :kaocha.type/cljs
:source-paths ["src"]
:test-paths ["test"]
:ns-patterns ["-test$"]}]}
I am pretty sure I made some dumb mistake somewhere, I just can’t see where. Any ideas?Hard to tell @jeremys, at first glance that looks ok. Are you a able to get a node repl with cljs.main?
@plexus Well here is where it gets weird, I started a clojure repl (nrepl + piggiback) and switched to cljs
(ns dev
(:require
[cljs.repl.node :as node]
[cider.piggieback :as piggie]))
(defn start-node-repl []
(piggie/cljs-repl (node/repl-env)))
(comment
(start-node-repl))
ran the tests from there. It worked. Then Now if I run the test with kaocha-cljs it works...