With all the setup out of the way, let's start writing actually tests for our application. In this lesson, we'll start with a unit test that will test the User model to ensure users' passwords are hashed when saved to the database.
What you'll learn
- What is a unit test
- What is a integration test
- Running migrations on a need-to basis
- Ensure each test starts on a clean slate
- Write your first AdonisJS test