SalesforceCommerceCloud / commerce-sdk

https://salesforcecommercecloud.github.io/commerce-sdk/
BSD 3-Clause "New" or "Revised" License
149 stars 48 forks source link

fix: use nanoid as regular dependency #378

Closed joeluong-sfcc closed 1 year ago

joeluong-sfcc commented 1 year ago

This PR resolves issue https://github.com/SalesforceCommerceCloud/commerce-sdk/issues/368. This PR also contains an integration test that uses nanoid underneath the hood. The integration tests package the commerce-sdk to be used as node module, so the test pulls the slasHelpers from the commerce-sdk package and tests a basic guest login flow that uses nanoid through the slasHelpers.

To run the tests within the repository:

git checkout ju/fix_nanoid
cd testIntegration
npm run test:ci