commercetools-node-mock icon indicating copy to clipboard operation
commercetools-node-mock copied to clipboard

Mock for the commercetools rest api

Results 23 commercetools-node-mock issues
Sort by recently updated
recently updated
newest added

This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically....

Note: this is still a bit rough, hence the draft PR. Open to feedback, though We were having some trouble writing tests around a shipping method because `cart.shippingInfo.taxedPrice` wasn't populated...

`addParcelToDelivery` is missing from the post call for order updates.

The function `priceFromDraft` is missing certain fields like `customerGroup`

Fetching data using the `.asAssociate` option is currently not yet supported, but required for B2B functionality. Allows fetching data based on the associate role in a business unit. (See: https://docs.commercetools.com/api/projects/associate-business-units)

Commercetools allows searching on `variants.availability.isOnStock` and `variants.availability.isOnStockForChannel`, to filter out products that don't have any stock available. See: https://docs.commercetools.com/api/projects/product-search#searchable-product-fields

This pull request upgrades the project to use Node.js 24 and PNPM 10, ensuring compatibility across local development, CI/CD, and Docker environments. It also updates a key dev dependency and...

The `priceFromDraft` function in `src/repositories/product/helpers.ts` was missing several important fields when converting a `PriceDraft` to a `Price` object. This caused incomplete price objects to be created, missing key functionality like...