This link cartridge reference code is based off of SFRA v6.3.0
Below are the instructions for working with this repository. For details on the Shop Component connector reference code contained within, please see the INTEGRATION GUIDE and TECHNICAL SPECIFICATIONS.
This project was built using node v14.21.3 but any version of node 14 will work. Node Version Manager or nvm is an easy way to use different versions of node
Run following:
npm install && npm run sfra:install
The above will install project dependencies. This may take a few minutes.
You can optionally use npm run watch as you develop in conjunction with the VS Code Prophet Debugger extension.
The following frameworks and packages are used for testing
-
-
SFCC API calls are mocked & stubbed using:
-
.env file at the root of this directory with the following variables. See example file
# Storefront URL
BASE_URL=https://<INSTANCE>.commercecloud.salesforce.com/on/demandware.store/Sites-RefArch-Site
# Url for integration tests
SITE_URL=https://<INSTANCE>.commercecloud.salesforce.com/on/demandware.store/Sites-RefArch-Site
Note: Integration and E2E tests require a live and fully configured SFRA Sandbox, and coordination from your Shopify launch team.
Change into the test directory
Run npm install
-
Running tests:
- Unit Tests:
npm run test:unit - Integration Tests:
npm run test:integration - UI Tests:
npm run test:ui - Integration + UI tests:
npm run test:e2e
- Unit Tests: