Unit tests vs integration tests vs end to end tests
Course: Testing in the MERN Stack - chapter 13
Unit tests
Section titled “Unit tests”If you mock out external services (DBs, kafka, redist), then you’re testing just the functionality of the method. These are called unit tests
Integration tests
Section titled “Integration tests”If you don’t mock out these services but actually start them locally, then it is considered an integration test
End to end tests
Section titled “End to end tests”If you have a full stack app and you actually open a browser and test things, it’s called an end to end test