fix: remove dist access for modules in integration tests (#9336)

This commit is contained in:
Adrien de Peretti
2024-09-27 09:11:03 +02:00
committed by GitHub
parent 262aa4291a
commit 38778b37e2
@@ -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"
) )