chore(integration-tests): Normalize DB config + use single process (#2077)
This commit is contained in:
committed by
GitHub
parent
687a6badeb
commit
690ca9e89a
8
integration-tests/setup-env.js
Normal file
8
integration-tests/setup-env.js
Normal 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}`
|
||||
}
|
||||
Reference in New Issue
Block a user