fix(integration): setup (#5511)

* fix(integration): setup
This commit is contained in:
Adrien de Peretti authored and GitHub committed 2023-11-01 13:56:12 -04:00
1 parent 4692f54b49
commit 80fe362f33
45 files changed
+461 -405

No files matched your search

+7 -1
View File
@@ -12,5 +12,11 @@ const pgGodCredentials = {
}
afterAll(async () => {
await dropDatabase({ databaseName: DB_NAME }, pgGodCredentials)
try {
await dropDatabase({ databaseName: DB_NAME }, pgGodCredentials)
} catch (e) {
console.error(
`This might fail if it is run during the unit tests since there is no database to drop. Otherwise, please check what is the issue. ${e.message}`
)
}
})