This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-05
Channels
- # announcements (3)
- # babashka (135)
- # beginners (82)
- # calva (55)
- # chlorine-clover (23)
- # cider (13)
- # clara (1)
- # clj-kondo (39)
- # cljs-dev (1)
- # cljsrn (2)
- # clojure (96)
- # clojure-france (3)
- # clojure-uk (24)
- # clojuredesign-podcast (1)
- # clojurescript (56)
- # conjure (73)
- # core-typed (1)
- # cursive (1)
- # datomic (10)
- # fulcro (57)
- # joker (4)
- # juxt (1)
- # malli (20)
- # meander (2)
- # off-topic (54)
- # re-frame (4)
- # reagent (3)
- # shadow-cljs (11)
- # spacemacs (6)
- # sql (26)
- # tools-deps (7)
Hello, since i enabled :deps true
i have this error with devtools:
Could not locate shadow/cljs/devtools/cli__init.class, shadow/cljs/devtools/cli.clj or shadow/cljs/devtools/cli.cljc on classpath.
Anyone using nubank/matcher-combinators
with Shadow? I'm requiring matcher-combinators.test
in my cljc ns, but the :browser-test
target is not picking up any such assertions: (is (match? 2 1))
If I switch to (is (= 2 1))
the error is reported and I have +1 assertions total.
I also created a library (check) that wraps matcher-combinators for cases where you can't simply use kaocha
Thanks for confirming, I linked to the same issue in the next thread-reply. Also, thanks for pointing me to your library - https://github.com/mauricioszabo/check - I'll be sure to review the source tomorrow for some testing ideas. ;)
I see you're also parsing and transforming the :match
return value here: https://github.com/mauricioszabo/check/blob/master/src/check/core.cljc#L13-L24
I'm wondering if this just won't work out of the box, without some additional plumbing; e.g. I've found Kaocha has some custom reporter plumbing - https://github.com/lambdaisland/kaocha/blob/master/src/kaocha/matcher_combinators.clj - or if I may have just missed something and someone has this working locally.
Looks like this may be an open issue: https://github.com/nubank/matcher-combinators/issues/83#issuecomment-530370989
Can i use a different library for each build like this with shadow-cljs?
{:paths ["src/cljs"]
:deps
{thheller/shadow-cljs {:mvn/version "2.8.94"}
binaryage/devtools {:mvn/version "1.0.0"}
reagent {:mvn/version "0.10.0"}
re-frame {:mvn/version "0.12.0"}
day8.re-frame/http-fx {:mvn/version "v0.2.0"}}
:aliases
{:dev
{:extra-deps
{day8.re-frame/tracing {:mvn/version "0.5.3"}}}
:prod
{:extra-deps
{day8.re-frame/tracing-stubs {:mvn/version "0.5.3"}}}}}