Files
medusa-store/integration-tests
Oliver Windall Juhl 0ba63c70b0 fix(medusa): Complete cart with 100% discount (#2032)
**What**
Naive fix to allow carts with 100% discount to be completed.

**Why**
Discount total is wrongly calculated if `items` and `items.adjustments` is not included in relations upon retrieving the cart.

**Thought**
This is yet another example of why we need to rethink and refactor totals computation to not depend on what is provided by the user.
2022-08-16 09:21:01 +00:00
..
2022-02-24 20:14:09 +01:00
2022-02-24 20:14:09 +01:00
2021-12-08 09:56:59 +01:00
2022-02-03 20:03:25 +01:00

Integration-tests

To be able to run the integration tests on your local machine, run the following commands (adapted to your machine)

cd [ROOT_OF_YOUR_REPO]
medusa-dev -p [YOUR_ABSOLUTE_PATH_TO_THE_REPO]
npm run bootstrap
cd integration-tests/api
medusa-dev -s
npm run build
cd - && npm run test:integration