chore: Add support for module dependencies configuration (#9330)
**What** Add support to specify which dependencies a module have during the tests and grab them from the injected dependencies
This commit is contained in:
committed by
GitHub
parent
af34bf6c0c
commit
c2f023c02f
@@ -66,6 +66,7 @@ export function moduleIntegrationTestRunner<TService = any>({
|
||||
moduleName,
|
||||
moduleModels,
|
||||
moduleOptions = {},
|
||||
moduleDependencies,
|
||||
joinerConfig = [],
|
||||
schema = "public",
|
||||
debug = false,
|
||||
@@ -76,6 +77,7 @@ export function moduleIntegrationTestRunner<TService = any>({
|
||||
moduleName: string
|
||||
moduleModels?: any[]
|
||||
moduleOptions?: Record<string, any>
|
||||
moduleDependencies?: string[]
|
||||
joinerConfig?: any[]
|
||||
schema?: string
|
||||
dbName?: string
|
||||
@@ -112,6 +114,7 @@ export function moduleIntegrationTestRunner<TService = any>({
|
||||
[moduleName]: {
|
||||
definition: moduleSdkImports.ModulesDefinition[moduleName],
|
||||
resolve,
|
||||
dependencies: moduleDependencies,
|
||||
options: {
|
||||
database: dbConfig,
|
||||
...moduleOptions,
|
||||
|
||||
Reference in New Issue
Block a user