You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since mockDBConnection is no longer an option, the following changes should be made:
Tests should use a test database (probably using the same Postgres setup and credentials but using a different value for WARTHOG_DB_DATABASE). This can be done either using a separate .env file or by setting the variable in the test npm script.
It would also be helpful to have a script to instantiate this db:
project.integration.test.ts: Remove mockDBConnection from getServer() call
testHelpers.ts: deleteTempDB() helper function should be replaced with either running yarn db:drop or hard-deleting the Project created in the integration test. The calls to it in globalSetup.ts and globalTeardown.ts should be removed.
The text was updated successfully, but these errors were encountered:
Since
mockDBConnection
is no longer an option, the following changes should be made:mockDBConnection
from getServer() callThe text was updated successfully, but these errors were encountered: