This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-23
Channels
- # announcements (8)
- # babashka (12)
- # babashka-sci-dev (6)
- # beginners (62)
- # biff (5)
- # calva (4)
- # cider (2)
- # clj-commons (8)
- # clj-kondo (17)
- # clj-yaml (40)
- # clojars (3)
- # clojure (117)
- # clojure-europe (122)
- # clojure-nl (5)
- # clojure-norway (20)
- # clojurescript (10)
- # consulting (1)
- # datomic (65)
- # events (15)
- # figwheel (1)
- # fulcro (4)
- # lsp (15)
- # mount (15)
- # music (1)
- # off-topic (53)
- # polylith (12)
- # releases (3)
- # shadow-cljs (13)
- # sql (1)
- # test-check (8)
- # xtdb (31)
Hi! This is how I have my ClojureScript tests configured to run with figwheel:
:test-cljs {:extra-deps {com.bhauman/figwheel-main {:mvn/version "0.2.18"}
org.slf4j/slf4j-nop {:mvn/version "2.0.2"}}
:extra-paths ["env/dev" "test" "target"]
:main-opts
["-m" "hummi.build.test"
"--compile-opts" "test.cljs.edn"
"-fwo" "{:launch-js [\"firefox\" \"-headless\" :open-url] :ring-server-options {:port 9501}}"
"-m" "hummi.test-runner"]}
And it mostly works great, the only issue is that Firefox keeps running after the tests complete.
So I have to kill the process before I can run the tests again from the CLI.
Does anyone have any tips for how to close Firefox gracefully after the test run?