Newer Version Available

This content describes an older version of this product. View Latest

Testing Components

Automated tests are the best way to achieve predictable, repeatable assessments of the quality of your custom code. Writing automated tests for your custom components gives you confidence that they work as designed, and allows you to evaluate the impact of changes, such as refactoring, or of new versions of Salesforce or third-party JavaScript libraries.

Use your testing framework of choice. Here are some popular testing tools.

We used to recommend Lightning Testing Service (LTS) but it’s deprecated and no longer supported.

Note