chore: Add back the db utils to the test runner for specific cases (#7764)
* chore: Add back the db utils to the test runner for specific casees * chore: Add back the db utils to the test runner for specific casees
This commit is contained in:
@@ -64,6 +64,11 @@ export interface MedusaSuiteOptions<TService = unknown> {
|
|||||||
dbConnection: any // knex instance
|
dbConnection: any // knex instance
|
||||||
getContainer: () => MedusaContainer
|
getContainer: () => MedusaContainer
|
||||||
api: any
|
api: any
|
||||||
|
dbUtils: {
|
||||||
|
create: (dbName: string) => Promise<void>
|
||||||
|
teardown: (options: { schema?: string }) => Promise<void>
|
||||||
|
shutdown: (dbName: string) => Promise<void>
|
||||||
|
}
|
||||||
dbConfig: {
|
dbConfig: {
|
||||||
dbName: string
|
dbName: string
|
||||||
schema: string
|
schema: string
|
||||||
@@ -148,6 +153,7 @@ export function medusaIntegrationTestRunner({
|
|||||||
schema,
|
schema,
|
||||||
clientUrl: dbConfig.clientUrl,
|
clientUrl: dbConfig.clientUrl,
|
||||||
},
|
},
|
||||||
|
dbUtils,
|
||||||
} as MedusaSuiteOptions
|
} as MedusaSuiteOptions
|
||||||
|
|
||||||
let isFirstTime = true
|
let isFirstTime = true
|
||||||
|
|||||||
Reference in New Issue
Block a user