A unit test checks the logic of your app, making sure components behave and interact with one another as expected.