fix: make sure @medusajs/medusa is loaded correctly regardless of integration test suite being run (#1166)
This commit is contained in:
@@ -20,14 +20,13 @@ class DatabaseFactory {
|
||||
this.templateDbName = "medusa-integration-template"
|
||||
}
|
||||
|
||||
async createTemplateDb_() {
|
||||
async createTemplateDb_({ cwd }) {
|
||||
try {
|
||||
const cwd = path.resolve(path.join(__dirname, ".."))
|
||||
// const cwd = path.resolve(path.join(__dirname, ".."))
|
||||
const connection = await this.getMasterConnection()
|
||||
const migrationDir = path.resolve(
|
||||
path.join(
|
||||
cwd,
|
||||
"api",
|
||||
`node_modules`,
|
||||
`@medusajs`,
|
||||
`medusa`,
|
||||
|
||||
Reference in New Issue
Block a user