This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-10
Channels
- # aleph (4)
- # beginners (32)
- # cider (12)
- # cljs-dev (56)
- # cljsrn (7)
- # clojars (3)
- # clojure (165)
- # clojure-dev (33)
- # clojure-germany (1)
- # clojure-italy (27)
- # clojure-russia (7)
- # clojure-spec (24)
- # clojure-uk (62)
- # clojurescript (37)
- # core-async (7)
- # core-matrix (1)
- # cursive (9)
- # data-science (8)
- # datomic (8)
- # duct (4)
- # events (1)
- # figwheel (7)
- # flambo (3)
- # fulcro (43)
- # hoplon (25)
- # jobs-discuss (8)
- # lein-figwheel (4)
- # luminus (2)
- # off-topic (35)
- # om (8)
- # om-next (3)
- # onyx (30)
- # pedestal (62)
- # portkey (2)
- # protorepl (2)
- # re-frame (40)
- # reagent (9)
- # shadow-cljs (123)
- # specter (30)
- # sql (22)
- # testing (1)
- # uncomplicate (40)
- # unrepl (3)
- # vim (13)
- # yada (5)
meta-j22 /buffer *22
whoops, damn keybinding :)
@flyboarder i was worried about dupes of tests if we have two folders
ideally we would test everything in both configurations
is there a way to dynamically set namespace dependencies somehow?
@thedavidmeister well we can call (require)
can’t we? Maybe call the tests twice? with a compiler flag set for which namespace to use?
just brainstorming
@flyboarder i thought you can't call require
directly in cljs? 😞
that's exactly what i want to do
run the tests twice with a compiler flag
i just don't know exactly what that looks like
@flyboarder ok, i've used goog-define
instead of regular def
but not for anything in the ns layer
@thedavidmeister I think it should work the same, then we need to update the test runner
but then i know that cljc works in ns
so it must be possible
well maybe we should do this in two steps?
first would be to get the existing tests all passing in both jquery and google
then we can add new tests
i actually doubt everything we currently have will pass on the first try
there's enough tests there that something will probably not quite line up exactly
i don't know how often anyone actually compares the output of jquery/google by hand
@thedavidmeister yeah there will probably be things to fix right away XD