This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-11
Channels
- # announcements (1)
- # aws (3)
- # beginners (48)
- # calva (2)
- # cider (47)
- # clj-kondo (1)
- # cljs-dev (23)
- # cljsrn (10)
- # clojure (81)
- # clojure-chicago (4)
- # clojure-europe (3)
- # clojure-greece (4)
- # clojure-italy (8)
- # clojure-losangeles (1)
- # clojure-nl (6)
- # clojure-sanfrancisco (1)
- # clojure-seattle (1)
- # clojure-uk (21)
- # clojurescript (40)
- # core-async (82)
- # cursive (18)
- # datomic (6)
- # duct (11)
- # figwheel-main (4)
- # fulcro (26)
- # jobs-discuss (22)
- # leiningen (18)
- # off-topic (10)
- # pathom (3)
- # re-frame (5)
- # reagent (16)
- # reitit (4)
- # shadow-cljs (8)
- # specter (7)
- # sql (16)
- # tools-deps (58)
- # xtdb (30)
Hi, we have a pure cljs project built with shadow-cljs that has a need for headless browser based integration tests. We normally use https://github.com/igrishaev/etaoin for this but after reading the manual I can't see an obvious way of writing the tests in clj. Has anyone done this before? I'd rather avoid bringing in another build tool for this.
You mean writing them in cljs? I don't think that's possible with etaoin. You'd have to switch to something JS-based, e.g. cypress
The latter. I would probably just use boot to run the clj tests before trying to do it myself with clj-run. I was just wondering if there was a simple solution I was missing with shadow-cljs
clj-run
is that simple solution. you just create a clojure function in some namespace and call that using clj-run
but shadow-cljs is focused on CLJS so running CLJ stuff might be better served using boot or so
Hi, I wrote a small post on using shadow to target (vanilla) react-native codebase and run it on an iOS simulator in Linux (using vbox) https://www.blog.nodrama.io/react-native-xcode-linux/ There is an accompanying repository here: https://github.com/fbielejec/shadow-cljs-react-native The resulting workflow is quite snappy and non-obtrusive - hopefully someone can find it useful.