A unit is a small section of code. Unit testing means you test that bit of code to make sure it functions properly. This increases confidence in your code.
Unit tests are important when many people work on the same codebase. If one engineer changes code in one part of the project, you want to ensure that the rest of the project still works.
Hope this will help !!!