fix(utils): update medusa config resolution for consistency (#9591)

This commit is contained in:
Adrien de Peretti
2024-10-15 11:52:06 -03:00
committed by GitHub
parent 537567b679
commit e9383f25e0
9 changed files with 40 additions and 25 deletions
@@ -100,7 +100,10 @@ let index!: IndexTypes.IIndexService
const beforeAll_ = async () => {
try {
configLoader(path.join(__dirname, "./../__fixtures__"), "medusa-config")
await configLoader(
path.join(__dirname, "./../__fixtures__"),
"medusa-config"
)
console.log(`Creating database ${dbName}`)
await dbUtils.create(dbName)
@@ -33,7 +33,10 @@ let medusaAppLoader!: MedusaAppLoader
const beforeAll_ = async () => {
try {
configLoader(path.join(__dirname, "./../__fixtures__"), "medusa-config")
await configLoader(
path.join(__dirname, "./../__fixtures__"),
"medusa-config"
)
console.log(`Creating database ${dbName}`)
await dbUtils.create(dbName)