@beautycounter/bc-cart-engine

This module is client agnostic and is intended to decouple the UI from the underlying business logic for cart and promotion calculations.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@beautycounter/bc-cart-engine
Minified + gzip package size for @beautycounter/bc-cart-engine in KB

Readme

Universal Cart Engine

This module is client agnostic and is intended to decouple the UI from the underlying business logic for cart and promotion calculations.

To mock scenarios, construct a context object and then pass it into the engine

What you need

Running unit tests

To unit test the application simply run the yarn test command which will recursively find test files using Jest.

$ yarn test
  • Files with .js suffix in __tests__ folders.
  • Files with .test.js suffix.
  • Files with .spec.js suffix.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.