Updated January 6, 2021

Using Stryker to test your Lighting Web Component Jest unit tests.

blue and orange lightning
source: Cappan, via: iStock

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…

Brian Batronis

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store