function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SFDC developer999SFDC developer999 

how to test lightning components

How to we test lightning components? do we need to create test class as with Apex classes?

Do we need to have 75% tested lightning components? How to move them to Production?

Do lightning components be counted against Governor llimits ? 
GauravGargGauravGarg
No, only apex class / triggers are count against 75% code deployment. 

Lightning Components are build in JS and hence do not require any test class. 
Zachary WaltonZachary Walton
If you are interested, you are able to test Lightning components using Jasmine (https://jasmine.github.io/). There are some videos (https://www.salesforce.com/video/294751/) online that you can check out if interested.