When building a non-trivial application, chances are we'll need to interact with a database in our tests. In this lesson, we are going to look at how to configure the Japa test runner to interact with a database. We'll be covering two ways to achieve that.
What you'll learn
- Configure Japa to interact with a database
- use a dedicate database for testing
- Run migrations programmatically