Sometimes you have a test that consistently fails and you just can’t figure it out. Most of us are used to being able to debug a component in the browser but how do we do that with Jest tests in LWC? Well fortunately it’s very simple!
Tag: salesforce
Testing Lightning Web Components
Lightning Web Components come with powerful unit testing support out of the box. Let’s walk through how to use it!
Two Way Binding in Lightning Web Components
If you are migrating from Angular.js to Lightning Web Components (LWC), one of the first questions you’ll have is about binding. How do I take bind a property from my JS into a form field and have changes in the form field update that property… i.e. how do I do two way binding in LWC?
Getting Started with Lightning Web Components
Salesforce have just announced one of the most exciting changes to the platform and to web development in general: Lightning Web Components (or LWC) This is a new way to write UI code on the Salesforce platform using modern web standards. This means as web developers we can finally write standard HTML, DOM and JavaScript with little to no proprietary syntax. I’m talking about pure ES6 JavaScript classes, import statements, normal DOM Events, Template DOM nodes and more!