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:
Adrien de Peretti
2024-06-18 17:19:37 +02:00
committed by GitHub
parent d5c5628ffc
commit 89bb16cea1

View File

@@ -64,6 +64,11 @@ export interface MedusaSuiteOptions<TService = unknown> {
dbConnection: any // knex instance
getContainer: () => MedusaContainer
api: any
dbUtils: {
create: (dbName: string) => Promise<void>
teardown: (options: { schema?: string }) => Promise<void>
shutdown: (dbName: string) => Promise<void>
}
dbConfig: {
dbName: string
schema: string
@@ -148,6 +153,7 @@ export function medusaIntegrationTestRunner({
schema,
clientUrl: dbConfig.clientUrl,
},
dbUtils,
} as MedusaSuiteOptions
let isFirstTime = true