All files / app/shipping getShippableItemsCount.ts

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8    12x   12x 71x    
import { Cart } from '@bigcommerce/checkout-sdk';
 
import getLineItemsCount from './getLineItemsCount';
 
export default function getShippableItemsCount(cart: Cart): number {
    return getLineItemsCount(cart.lineItems.physicalItems.filter(item => !item.addedByPromotion));
}