LWC Jest Tests
| | |

The Complete Guide to LWC Jest Testing: From Setup to Advanced Mocking

If you are a Salesforce developer, you know the drill: Apex requires 75% code coverage to deploy. But what about your Lightning Web Components (LWC)? While Salesforce doesn’t technically force you to test your front-end code, skipping it is a recipe for disaster. In this deep dive we break down everything you need to know…

Salesforce Development Tutorial (LWC): How to use Data Attributes to easily pass data from your component HTML template to your JavaScript Controller
|

Salesforce Development Tutorial (LWC): How to use Data Attributes to easily pass data from your component HTML template to your JavaScript Controller

What are Data Attributes and Why Should I Use Them? Data attributes are a truly magical thing that will, at some point, get you out of some prickly situations as a front end developer. They are essentially a way of storing data on an html element so that when a JS event gets fired your…