Articles
Latest
More
Newsletter Sponsorship Discord About
Sign up for our Newsletter
The video for this lesson is currently being updated, please read the transcript instead.
Enterprise Vue > Lesson 30

Checking database

This unit test would be more robust if we not only checked the HTTP response, but we also checked the database to ensure state has been modified as we're intending.

Clearing the database

The database contents will obviously persist across tests, which makes it unpredictable. For this reason, we should make sure the database is cleared before every test runs to ensure that pre-existing data doesn't interfere with our tests.


Back to course page

Click to load comments...

Articles
  • Latest
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom