Glad to announce that this past week we published Ready to Fly, our new sample app that integrates Salesforce and Slack, giving solutions to common challenges such as implementing user authorization with Salesforce securely and showing common integration patterns.
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.
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.
Los test unitarios son un must para conseguir un código mantenible, blindado frente a errores y fácil de depurar. En definitiva aplicaciones de CALIDAD.
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).