integrant

Max 2022-10-19T20:00:54.697999Z

Is there a way to test whether a system map is started? We’re restarting the system in our test fixtures before each test, but on the first run, halting fails because the system was never started.

Max 2022-10-25T19:04:41.808359Z

What you suggested is exactly what I ended up doing! It seems like it’d be good to have a fn in integrant for that though.

kirill.salykin 2022-10-21T09:52:06.836179Z

AFAIK integrant adds metadata to a map, try checking if there is any

kirill.salykin 2022-10-21T09:54:57.402949Z

Probably it makes sense to use same approach as integrant here: https://github.com/weavejester/integrant/blob/master/src/integrant/core.cljc#L443

kirill.salykin 2022-10-21T09:56:03.553029Z

Checking for this

(some-> system meta ::origin)
maybe it makes sense to introduce initiated? public fn to integrant to address the question

kirill.salykin 2022-10-21T09:59:10.998379Z

hope it is not too late 🙂