@beautycounter/bc-cart-engine

2.5.5 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @beautycounter/bc-cart-engine

Weekly Downloads

19

Version

2.5.5

License

none

Unpacked Size

442 kB

Total Files

54

Last publish

Collaborators

  • alexu-bc
  • mosadeghian
  • alastairpurvis
  • acloftbeautycounter
  • dnsaba
  • smbarrett