Fork me on GitHub
#testing
<
2020-05-17
>
craftybones10:05:30

What is the canonical way to test state in Clojure? Assuming you have some atom that contains the app-state and there are a bunch of handlers that manipulate it and you want to test the handlers, do you use with-redefs to set the app-state?

craftybones10:05:55

More importantly, if I want to set the state up and then call the handlers, what would I do?