- It is documented here: https://stryker-mutator.io/docs/stryker-js/introduction
- It was previously just called Stryker, but then the framework grew to incorporate mutation testing for C# and and Scala programs as well, so they rebranded Stryker as Stryker-JS to avoid confusion.
- Make sure you are in the
frontenddirectory and have already done
npx stryker run
If you know that all of your current changes are in a specific file, it is much faster to run mutation testing only on that single file instead of the entire project.
For example, if your changed file is
src/main/components/Nav/AppNavbar.js you can restrict stryker to this file by running:
npx stryker run -m npx stryker run -m src/main/components/Nav/AppNavbar.js