fix: make module test runner configurable (#6803)

* fix: make module test runner configurable

* Create blue-pumas-promise.md
This commit is contained in:
Sebastian Rindom
2024-03-23 10:01:16 +01:00
committed by GitHub
parent 2ae8eaa779
commit 0168c819da
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
---
"@medusajs/medusa": patch
"medusa-test-utils": patch
---
fix(medusa-test-utils): make module test runner models configurable

View File

@@ -39,7 +39,7 @@ export function moduleIntegrationTestRunner({
}) {
process.env.LOG_LEVEL = "error"
moduleModels = Object.values(require(`${process.cwd()}/src/models`))
moduleModels ??= Object.values(require(`${process.cwd()}/src/models`))
// migrationPath ??= process.cwd() + "/src/migrations/!(*.d).{js,ts,cjs}"
const tempName = parseInt(process.env.JEST_WORKER_ID || "1")