From 6f503204ca80a8259b1c56682291a15b797f1639 Mon Sep 17 00:00:00 2001 From: Adrien de Peretti Date: Fri, 27 Sep 2024 09:11:03 +0200 Subject: [PATCH] fix: remove dist access for modules in integration tests (#9336) --- integration-tests/modules/__tests__/cart/store/carts.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration-tests/modules/__tests__/cart/store/carts.spec.ts b/integration-tests/modules/__tests__/cart/store/carts.spec.ts index e8147ec39b7d3..2d1cf76123d00 100644 --- a/integration-tests/modules/__tests__/cart/store/carts.spec.ts +++ b/integration-tests/modules/__tests__/cart/store/carts.spec.ts @@ -1,5 +1,4 @@ import { RemoteLink } from "@medusajs/modules-sdk" -import PaymentModuleService from "@medusajs/payment/dist/services/payment-module" import { IApiKeyModuleService, ICartModuleService, @@ -2391,8 +2390,9 @@ medusaIntegrationTestRunner({ }) it("should return cart when payment authorization fails", async () => { + const paymentModuleService = appContainer.resolve(Modules.PAYMENT) const authorizePaymentSessionSpy = jest.spyOn( - PaymentModuleService.prototype, + paymentModuleService, "authorizePaymentSession" )