fix: remove dist access for modules in integration tests (#9336)
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import { RemoteLink } from "@medusajs/modules-sdk"
|
import { RemoteLink } from "@medusajs/modules-sdk"
|
||||||
import PaymentModuleService from "@medusajs/payment/dist/services/payment-module"
|
|
||||||
import {
|
import {
|
||||||
IApiKeyModuleService,
|
IApiKeyModuleService,
|
||||||
ICartModuleService,
|
ICartModuleService,
|
||||||
@@ -2391,8 +2390,9 @@ medusaIntegrationTestRunner({
|
|||||||
})
|
})
|
||||||
|
|
||||||
it("should return cart when payment authorization fails", async () => {
|
it("should return cart when payment authorization fails", async () => {
|
||||||
|
const paymentModuleService = appContainer.resolve(Modules.PAYMENT)
|
||||||
const authorizePaymentSessionSpy = jest.spyOn(
|
const authorizePaymentSessionSpy = jest.spyOn(
|
||||||
PaymentModuleService.prototype,
|
paymentModuleService,
|
||||||
"authorizePaymentSession"
|
"authorizePaymentSession"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user