Updated January 6, 2021
Using Stryker to test your Lighting Web Component Jest unit tests.
Don’t rely on code coverage alone. This can be gamed. You need to use mutations to ensure your tests are actually testing something. Stryker is compatible with Jest. An implementation of Jest is provided by Salesforce for use with testing Lightning Web Components (LWC).
I am not going to cover general configuration or features of LWC. There are many articles and a lot of documentation already available covering this topic. I am also not going to discuss configuring lwc-jest. Again, there are a lot of…