Unit Tests: checks that the classes fan-out is according to contract and can be used also to ensure that you do not have coupling or lack cohesion by checking the complexity of the tests.
Integration Tests: checks that the code does what it's supposed to do.
Both serve different purposes and are not mutually exclusive.
2 unit test 0 integration test
We’re a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.