Version 22.2.0
Please check ./documentation/Klarna Chekout Integration Documentation.docx (for SiteGenesis) and ./documentation/SFRA Klarna Chekout Integration Documentation.docx (for SFRA) as the integration reference.
npm install
- Install all of the local dependencies.
npm run compile:js
- Compiles all .js files and aggregates them.
npm run lint
- Execute linting for all JavaScript files in the project.
npm run uploadSfra
- Will upload int_klarna_checkout_sfra
to the server. Requires a valid dw.json
file at the root that is configured for the sandbox to upload.
npm run uploadSitegenesis
- Will upload int_klarna_checkout
to the server. Requires a valid dw.json
file at the root that is configured for the sandbox to upload.
In order to run the unit tests, do the following steps in the root of the project.
npm install
npm run test
In order to run the integration tests, do the following steps in the root of the project.
npm install
- Make sure you have a
dw.json
file pointing to a sandbox. - Make sure that the product id defined with
testProductId
init.config.js
is pointing to a valid and online product. - Change
baseUrl
init.config.js
if necessary. npm run test:integration