fix: make module test runner configurable (#6803)
* fix: make module test runner configurable * Create blue-pumas-promise.md
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/medusa": patch
|
||||||
|
"medusa-test-utils": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(medusa-test-utils): make module test runner models configurable
|
||||||
@@ -39,7 +39,7 @@ export function moduleIntegrationTestRunner({
|
|||||||
}) {
|
}) {
|
||||||
process.env.LOG_LEVEL = "error"
|
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}"
|
// migrationPath ??= process.cwd() + "/src/migrations/!(*.d).{js,ts,cjs}"
|
||||||
|
|
||||||
const tempName = parseInt(process.env.JEST_WORKER_ID || "1")
|
const tempName = parseInt(process.env.JEST_WORKER_ID || "1")
|
||||||
|
|||||||
Reference in New Issue
Block a user