chore: parallelize integration tests and use template dbs (#907)

This commit is contained in:
Zakaria El Asri
2021-12-14 21:45:57 +01:00
committed by GitHub
parent b8ff364276
commit 69620e572e
12 changed files with 171 additions and 69 deletions
+2 -1
View File
@@ -1,11 +1,12 @@
const DB_USERNAME = process.env.DB_USERNAME || "postgres"
const DB_PASSWORD = process.env.DB_PASSWORD || ""
const workerId = parseInt(process.env.JEST_WORKER_ID || "1")
module.exports = {
plugins: [],
projectConfig: {
// redis_url: REDIS_URL,
database_url: `postgres://${DB_USERNAME}:${DB_PASSWORD}@localhost/medusa-integration`,
database_url: `postgres://${DB_USERNAME}:${DB_PASSWORD}@localhost/medusa-integration-${workerId}`,
database_type: "postgres",
},
}