Skip to content

Commit

Permalink
fix: remove dist access for modules in integration tests (#9336)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p authored Sep 27, 2024
1 parent 262aa42 commit 38778b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration-tests/modules/__tests__/cart/store/carts.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { RemoteLink } from "@medusajs/modules-sdk"
import PaymentModuleService from "@medusajs/payment/dist/services/payment-module"
import {
IApiKeyModuleService,
ICartModuleService,
Expand Down Expand Up @@ -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"
)

Expand Down

0 comments on commit 38778b3

Please sign in to comment.