Some tests started to become a problem to maintain, to solve it a good approach might be:
mock all tests done in the controller layer and let it check just the input of data (validation) and output (payload contents)
in the service layer, integrate it with persistence layer and do a service to db and db to service check
In the future this will help when some complex scenario should be tested and starting from the controller might trigger a lot of services and the test could be easily bigger than the implementation
Some tests started to become a problem to maintain, to solve it a good approach might be:
In the future this will help when some complex scenario should be tested and starting from the controller might trigger a lot of services and the test could be easily bigger than the implementation