...

/

Getting Tests to Clear the DB

Getting Tests to Clear the DB

Fix the integration tests and add some scripts to clear the database (DB) on test runs.

We are almost done fixing the integration test for the persistence feature. As you recall, we:

  1. Wrote an integration test that verifies that tasks persist between sessions
  2. Wrote unit tests for API functions and the useTasks hook, which implements the required features
  3. Implemented the API functions and the useTasks hook.
...
Access this course and 1400+ top-rated courses and projects.