This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-16
Channels
- # announcements (16)
- # asami (5)
- # aws (2)
- # babashka (4)
- # beginners (22)
- # calva (28)
- # cider (3)
- # clj-kondo (1)
- # cljdoc (13)
- # cljs-dev (16)
- # clojure (3)
- # clojure-australia (1)
- # clojure-europe (25)
- # clojure-gamedev (1)
- # clojure-germany (2)
- # fulcro (34)
- # helix (4)
- # jobs-discuss (16)
- # leiningen (10)
- # malli (20)
- # meander (7)
- # nrepl (35)
- # off-topic (1)
- # portal (13)
- # ring-swagger (3)
- # shadow-cljs (34)
- # tools-deps (7)
- # vim (1)
Hi, I have project setup with deps.end and shadow-cljs.edn, every source and test file is an .cljc file. I'm able to start clj repl and do normal workflow with cider and run unittests C-c-t n etc. I'm also able to run shadow-cljs version of the workflow "connect" with browser, connect with cider-cljs, but in this setup running unitests shows error message - it cannot connects to the clj repl - which makes sense because only cljs repl is running (and cider is already connected to it). My question is - how to make cider to run unitests in already running and connected cljs repl?
I don't think cider supports running cljs tests; you can though run your tests individually from the cljs repl as`(my.namespace/test-name)` or using one of the test functions (such as run-ns
as documented at http://bensu.github.io/clojurescript-docs/cljs.test-api.html