This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-14
Channels
- # beginners (53)
- # cider (10)
- # cljs-dev (23)
- # cljsrn (25)
- # clojure (68)
- # clojure-italy (4)
- # clojure-spec (25)
- # clojure-uk (7)
- # clojurebridge-ams (1)
- # clojurescript (10)
- # cursive (20)
- # datomic (21)
- # duct (4)
- # fulcro (1)
- # graphql (4)
- # hoplon (1)
- # java (7)
- # luminus (9)
- # off-topic (111)
- # om-next (2)
- # onyx (14)
- # re-frame (3)
- # reagent (9)
- # shadow-cljs (182)
- # test-check (32)
- # tools-deps (53)
- # uncomplicate (1)
- # vim (94)
- # yada (2)
@yogthos Do you know of any docs or examples that show how to mock/stub components for testing? The components page mentions it as a possibility, but its not a complete example.
@ramblurr What I do is to define new systems for tests / production: https://github.com/sveri/closp/blob/b973affd33753e6282fda60a8e2805a1e1cfc4a4/resources/leiningen/new/closp/integtest/clj/setup.clj#L35 https://github.com/sveri/closp/blob/b973affd33753e6282fda60a8e2805a1e1cfc4a4/resources/leiningen/new/closp/clj/components/components.clj#L10
@sveri ah I see, that's nifty. Are you familiar with the generated luminus template? I'm not sure where to fit something like that in
For example, luminus starts the components in the tests [like so](https://github.com/mmmanyfold/pb/blob/e6d61fc8716e00960d0a2240556a8bb8cf19a7ce/test/clj/pb/test/handler.clj#L10). I can easily add another component to that start line, but how would I modify it to start env
and app
as normal with use mount/start-with
on the other component
ah, luminus uses mount, I am afraid you cannot use my example then and unfortunately I have not used mount myself extensively.
@ramblurr take a look at mount docs, specifically this section https://github.com/tolitius/mount#start-and-stop-parts-of-application