90e57bca11
* Add unit test cases for Min and Max price for shipping methods * Move Test for Min and Max rates to shipping-rates - Move Test for Min and Max rates to shipping-rates. - Use single shippingRates object throughout the test cases. * Update assets/js/base/utils/test/shipping-rates.ts Co-authored-by: Niels Lange <info@nielslange.de> * Update assets/js/base/utils/test/shipping-rates.ts Co-authored-by: Niels Lange <info@nielslange.de> * Add helper function to generate shipping rates * Add a test for empty shipping rates * Remove redundant attribute values from generateRate function --------- Co-authored-by: Niels Lange <info@nielslange.de> |
||
---|---|---|
.. | ||
components | ||
context | ||
hocs | ||
hooks | ||
utils | ||
README.MD |
README.MD
Base Components/Context/Hooks
Base components are designed to be used on the frontend of a store. Due to this, we need to avoid using heavy WordPress externals as dependencies (wp-components, wp-block-editor, etc). To get around this, import from a local package instead.
e.g. Instead of importing from @wordpress/components
, use:
import { Component } from 'wordpress-components';
Check the built *.assets.php
files to ensure extra dependencies aren't being added to the build.