This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-26
Channels
- # asami (5)
- # babashka (9)
- # beginners (19)
- # calva (14)
- # cider (13)
- # clj-kondo (9)
- # cljfx (2)
- # clojure (51)
- # clojure-bay-area (1)
- # clojure-europe (26)
- # clojurescript (23)
- # code-reviews (7)
- # core-async (1)
- # datahike (4)
- # datalevin (3)
- # emacs (2)
- # kaocha (2)
- # malli (6)
- # nrepl (3)
- # polylith (3)
- # re-frame (15)
- # reveal (1)
- # shadow-cljs (13)
- # tools-deps (6)
How do people run clojure.test tests that need the context of a real browser? The guide mentions Karma plus a couple of plugins... is that still the recommended approach? In my case I'd probably use the karma playwright launcher but I was wondering about the approach in general.
there's some interesting work happening with kaocha-cljs2, but I don't think it's fully ready to go yet.
I saw that but it didn't inspire a lot of confidence - but it would be nice to also run tests from the REPL. Not sure how that works, I need to setup of PoC...
it uses https://github.com/Olical/cljs-test-runner to show your tests in the browser
you can also, in your running app, evaluate a ns with tests in it and then call cljs.test/run-tests
I thought shadow-cljs did include that by default? maybe I'm totally misremembering lol
maybe you mean https://github.com/bhauman/cljs-test-display?