chore(integration-tests): Normalize DB config + use single process (#2077)

This commit is contained in:
Carlos R. L. Rodrigues
2022-08-24 07:29:53 -03:00
committed by GitHub
parent 687a6badeb
commit 690ca9e89a
15 changed files with 52 additions and 46 deletions

View File

@@ -0,0 +1,8 @@
const path = require("path")
require("dotenv").config({ path: path.join(__dirname, ".env.test") })
if (typeof process.env.DB_TEMP_NAME === "undefined") {
const tempName = parseInt(process.env.JEST_WORKER_ID || "1")
process.env.DB_TEMP_NAME = `medusa-integration-${tempName}`
}