@beautycounter/bc-cart-engine
v2.5.5
Published
This module is client agnostic and is intended to decouple the UI from the underlying business logic for cart and promotion calculations.
Keywords
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
- Node.js
- Yarn package manager https://yarnpkg.com/lang/en/docs/install/
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
.jssuffix in__tests__folders. - Files with
.test.jssuffix. - Files with
.spec.jssuffix.
