How do developers test their AURA, LWC, JS, and CSS code in Salesforce? I understand how to write test classes and test APEX code, but I lack knowledge on testing JS, AURA, and CSS in Salesforce.
As a beginner, how can I learn this? I've searched through Trailhead, YouTube, ChatGPT, and more, but I haven't found the right learning path. What is the most effective method of learning?
Do we actually test AURA and JS code given that they are frameworks? I am struggling to comprehend. If testing is necessary, how is it done?
Could you please provide references and guidance based on your experience?
1 Antwort
Hello @Nikhil Bazaru please have a look at codelive sessions on this subject
- codeLive: Testing and Debugging LWC (https://www.youtube.com/watch?v=hl3fIhPH8xg)
- Testing Lightning Web Components (https://www.youtube.com/watch?v=NH0YQKJMTKg)
- https://trailhead.salesforce.com/content/learn/modules/test-lightning-web-components/write-a-jest-test
- https://developer.salesforce.com/docs/platform/lwc/guide/testing.html
Eric