Development
This guide provides basic information for software development using the checkout starter kit.
Testing
The testing framework is in Jest and execution is based on the aio
CLI.
Run unit tests for the UI and actions:
Copied to your clipboardaio app test
Run end-to-end tests:
Copied to your clipboardaio app test --e2e
These are example tests and do not provide any relevant testing. These tests are only examples of how to use the available tooling. Use the tests to create your own tests relevant to your implementation.
Linting and formatting
The starter kit uses Prettier and ESLint to enforce code style and formatting. The following commands are available for linting and formatting:
Check linting
Copied to your clipboardnpm run lint:checkFix linting
Copied to your clipboardnpm run lint:fixCheck format
Copied to your clipboardnpm run format:checkFix format
Copied to your clipboardnpm run format:fixCheck both linting and format
Copied to your clipboardnpm run code:checkFix both linting and format
Copied to your clipboardnpm run code:fix
Use the following links to configure formatting for your IDE:
Debugging
For debugging applications created with the starter kit, refer to the App Builder debugging documentation.
Deploy and cleanup
The starter kit uses the Adobe I/O CLI to deploy and undeploy the application, using the following commands:
Copied to your clipboardaio app deploy
Copied to your clipboardaio app undeploy