hello all! does anybody knows how to start only certain parts of the system, but replace some config states (in starting parts) by test configs?
does this help: https://github.com/tolitius/mount#swapping-alternate-implementations ?
no, it doesn't. start-with performs start all system
i need start only ceratin namespaces but in starting namespaces i need swap config to test config
if you scroll a bit up there's Be Composing
part
where you can specify which nses to start and which to substitute
(scroll the README, I mean)
solved! key is new version of mount. i've used 0.1.9 but now exist 0.1.10 with new functionality
(-> (only #{#'foo/a #'foo/b #'foo/c #'bar/d #'baz/e}) (with-args {:a 42}) (except [#'foo/c #'bar/d]) (swap-states {#'foo/a #'test/a}) (swap {#'baz/e {:datomic {:uri "datomic:<mem://composable-mount>"}}}) mount/start)