NestJS · Middle · Question 43 of 75

Why is it useful to test against a real database in Docker for repository code?

Explanation

Use transactions rolled back after each test or a fresh schema per test run to keep tests isolated.

Further reading

Problem with a question

NestJS · Middle · question 43

Test yourself

Take the NestJS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz