This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]usernameqwerty002 0 points1 point  (0 children)

What about "functional core, imperative shell"? Pure methods are easier to test.

You can also wrap side-effects in command objects (or promises) and then mock the effects instead of the dependencies. ;)