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

This commit is contained in:
Adrien de Peretti authored and GitHub committed 2024-10-15 11:52:06 -03:00
1 parent 537567b679
commit e9383f25e0
9 files changed
+40 -25

No files matched your search

@@ -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)