What is the idiomatic way to apply a function to a mount state (for testing). I am imagining something like mount/swap
but which supplies a fn rather than a value
@ben606 is start-with-states
[1] what you're looking for?
https://github.com/tolitius/mount#swapping-states-with-states
I don’t think so. It looks like this just takes a couple of zero-story fns and invokes then on start and stop. What I’m thinking of is a 1-argument function that is invoked with the state as an argument. Although as I type that, I can see how my question might not even make sense.
In the meantime I have found a workaround by using with-redefs on an accessor fn