This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-21
Channels
- # announcements (1)
- # babashka (66)
- # beginners (37)
- # calva (3)
- # cljdoc (2)
- # clojure (14)
- # clojure-australia (6)
- # clojure-doc (4)
- # clojure-europe (22)
- # clojurescript (9)
- # datalevin (5)
- # datomic (4)
- # emacs (5)
- # events (1)
- # figwheel-main (6)
- # graalvm (41)
- # lsp (16)
- # luminus (1)
- # off-topic (2)
- # overtone (2)
- # re-frame (2)
- # reagent (8)
- # remote-jobs (1)
- # reveal (49)
- # shadow-cljs (9)
- # spacemacs (14)
- # tools-build (4)
- # tools-deps (16)
Hello,
Is there a way to use shadow-cljs
to automatically run tests when files are modified?
It looks possible when the target is node
, but I couldn't find anything for when the target is karma
or the browser.
@frozenlock for :browser-test
you just open the browser and tests run automatically. for karma
you run karma, no idea how
But then shadow-cljs
isn't working anymore to compile new the modified cljs files, right? (Following this https://shadow-cljs.github.io/docs/UsersGuide.html#_the_build)
Neither did I. I'm just searching for a way to test cljs with CI 😅
the way I run our tests in ci:
shadow-cljs compile ci # compile the tests from CLJS to JS
npx karma start --single-run
this happens anytime a push to a branch occursif you're running them locally, you can run shadow-cljs watch ci
and then tell karma to watch for file changes.
Thank you very much!