From 38778b37e2e2eb6c344e8e98a983b3fde0d94101 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 e8147ec39b..2d1cf76123 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" )