chore: parallelize integration tests and use template dbs (#907)
This commit is contained in:
@@ -12,5 +12,9 @@ const pgGodCredentials = {
|
||||
}
|
||||
|
||||
afterAll(() => {
|
||||
dropDatabase({ databaseName: "medusa-integration" }, pgGodCredentials)
|
||||
const workerId = parseInt(process.env.JEST_WORKER_ID || "1")
|
||||
dropDatabase(
|
||||
{ databaseName: `medusa-integration-${workerId}` },
|
||||
pgGodCredentials
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user