Skip to content

Unit tests vs integration tests vs end to end tests

Course: Testing in the MERN Stack - chapter 13

If you mock out external services (DBs, kafka, redist), then you’re testing just the functionality of the method. These are called unit tests

If you don’t mock out these services but actually start them locally, then it is considered an integration test

If you have a full stack app and you actually open a browser and test things, it’s called an end to end test