ESXX Features in Lightning Web Components

Some weeks ago I decided to talk about modern JavaScript features that you can use in LWC. Usually there’s a lot of confusion around this topic, as people believe that only certain JavaScript features, from versions < ES9 can be used in LWC. But this is not true! You can use features from newer versions as long as your browser supports them. The only caveat is that we don’t transform them to ensure backwards compatibility. But that shouldn’t be a problem if your customers use a modern browser (often the case). I explain everything about this topic in the next videos. Watch the series to understand the guts of LWC compilation and why it’s true what I just said, and also learn about some the most interesting features from ES9 to ES12 that will make your code much more professional! If you prefer some reading, take a look at this blog post on our developer site.

Automated Accessibility Tests with sa11y

Accessibility in today’s world is a must! Thus, in the past weeks I’ve spent some time implementing automated tests that check for accessibility issues in Sample Gallery apps. To check for accessibility issues I’ve used sa11y, a set of open source JavaScript libraries that detects machine knowable accessibility issues and that can be used with Jest, WebdriverIO or just generic JavaScript.

Continue reading “Automated Accessibility Tests with sa11y”

Unit testing aura components with Lightning Testing Service and Mocha

When thinking about good quality software we must always have very present that tests automation is a must. There is a full list of tiers and tools that can be used to ensure that your software behaves as expected, bugs typically introduced by refactoring are prevented, and interconnected systems behave well together, as for example your code together with a Salesforce upgrade. In this post I want to focus on how to write unit tests for Lightning Components using Lightning Testing Service (LTS).

Continue reading “Unit testing aura components with Lightning Testing Service and Mocha”

Blog at WordPress.com.

Up ↑