The development of this course was a labor of love for me and I have to admit something I worked so hard on. I would not compromise the quality for anything (including the three deadlines I missed). Luckily, I was working with some of the best editors in the world (huge shout out to Bentley Lignell, Stacy Sohn and Austin Allen).
As for the course, it covers the following:
LWC Benefits and what are Web Components
Setting up you development environment with Salesforce, Visual Studio Code and Salesforce DX
Component Design using Custom DOM events
Working with Salesforce Data using the Wire Adapter and Debugging with Chrome Developer Tools
Converting Aura components and lessons I learned
In the course, we will be building an application that will look like this:
If you are looking for the final code created in this course, you can find it here.
For anyone that might not be a Pluralsight subscriber yet, here is a link to a free 10-day trial.
And finally, please feel free to send me your feedback on the course. Good or bad. I appreciate it all because it helps me to develop better content that meets your needs.
And here are just some of the things you will learn in this module:
Describe the difference between function and block scoping.
Recognize shorthand ES6+ syntax used to initialize variables.
Identify the new destructuring syntax used to separate data.
Identify the backtick character used to create template literals.
Recognize the fat arrow syntax for functions.
Explain why defining optional parameters in ES6+ results in cleaner code.
Describe the different uses for the ‘…’ operator.
Explain what’s different about how you create and invoke classes in ES6+.
Recognize the basic syntax and different importing styles used to define modules.
Demonstrate how asynchronous calls can be chained together using promises.
Demonstrate how an async function can be used to call a promise.
Identify the different elements used in a Jasmine testing script.
Create a simple Jasmine test suite and run it stand-alone.
In this post, I will just highlight the super important things you need to know about working with LTS:
You do not install or use LTS in production. Seriously! This is just for development environments and even better it is for scratch orgs that you create using SalesforceDX.
LTS includes sample code to get you started. This includes not only the Jasmine and Mocha wrappers, but a Lightning App called JasmineTests.app that you can use to jump start your testing. Just follow the instructions in Christophe’s blog post and you should be up an running in no time.
This is the most important tip: Do not use LTS to test your server code. Keep your client and server-side testing separate. When calling Apex server methods that insert records with LTS, the data that is created is NOT rolled back. You have to be responsible for rolling back the data yourself. You can still mock the server call and an example of this is provided in Christophe’s blog post as Scenario #6. This is the recommended and best way for you to test the server code in your lightning Components. You can still create (and you actually still need to) regular unit tests to test that your Aura methods work as expected.
Ok, that’s it.
Hope it helps and good luck in your journey towards becoming an AWESOME Lightning Developer using Lightning Testing Service.