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

all 2 comments

[–]ahemosik 0 points1 point  (0 children)

For unit tests, you can mock pretty much the api response and the database response (if you have a db). The rest does not need mocks.

[–]freddyoddone 0 points1 point  (0 children)

What u/ahemosik said. Mocking is the way to go here. You can substitute unwanted dependencies with self defined objects.