Mutation testing for JS
Checks how good your JavaScript tests really are with StrykerJS mutation testing.
Claude's review
7/10 StrykerJS mutation-testing guide with config, report reading and CI gating.
We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.
In detail
StrykerJS is a mutation testing tool for JavaScript and TypeScript: it makes small deliberate changes to your source code and checks whether your tests fail, which shows how well the tests really protect the code. Use it when asked to "run mutation testing", "check test quality", "find weak tests", "improve the mutation score", "set up Stryker", or to gate a CI build on a mutation score.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: stryker-js
description: >-
StrykerJS is a mutation testing tool for JavaScript and TypeScript: it makes small deliberate changes to your source code and checks whether your tests fail, which shows how well the tests really protect the code. Use it when asked to "run mutation testing", "check test quality", "find weak tests", "improve the mutation score", "set up Stryker", or to gate a CI build on a mutation score.
license: Apache-2.0
compatibility: "Node.js 22+ (StrykerJS 10), an existing test suite that passes"
metadata:
author: terminal-skills
version: "1.0.0"
category: development
tags: "mutation-testing, testing, javascript, typescript, test-quality"
repository: https://github.com/stryker-mutator/stryker-js
---
# StrykerJS — mutation testing for JavaScript and TypeScript
## Overview
Line coverage tells you which code your tests execute, not whether they would notice a bug. StrykerJS answers the second question. It copies your project into a sandbox, applies one small change at a time (a `>=` becomes `>`, a `&&` becomes `||`, a condition becomes `true`), and reruns the tests for each change. A change that makes a test fail is "killed". A change that no test notices "survived", and every survivor points at a missing or weak assertion.
The result is a mutation score: killed mutants divided by all mutants that were tested. Stryker can fail the build under a chosen score, write an HTML report, and reuse earlier results so reruns only test what changed.
Use it on code whose behaviour matters (pricing, permissions, parsing, validation). Do not point it at a project whose tests are already failing: the initial run must pass.
## Instructions
### Installation and setup
StrykerJS 10 needs Node.js 22 or newer. Install the core package plus a runner for your test framework as dev dependencies:
```bash
npm install --save-dev @stryker-mutator/core
npm install --save-dev @stryker-mutator/vitest-runner # Vitest
# or: @stryker-mutator/jest-runner, @stryker-mutator/mocha-runner,
# @stryker-mutator/karma-runner, @stryker-mutator/tap-runner,
# @stryker-mutator/cucumber-runner
npm install --save-dev @stryker-mutator/typescript-checker # TypeScript projects only
```
The runner package must be the same version as `@stryker-mutator/core`. The guided way is `npm init stryker`, which asks about your framework and writes a config file. It is interactive, so in an agent session write the config by hand instead (below).
...From TerminalSkills's repository, Apache-2.0 licence.
Related skills
-
Checked
React Native tests
Writes and fixes React Native component tests with Testing Library v13 and v14, using the right API for each.
7/101 credit -
Checked
JUnit and Mockito tests
Writes and fixes Java tests with JUnit, AssertJ and Mockito that are deterministic and keep failures visible.
8/101 credit -
Checked
Test code review
Reviews new or changed tests in pytest, Jest, Go and more, so weak tests are caught before merge.
8/101 credit -
Checked
Test scope decisions
Decides which tests a change needs and how to judge their quality, for unit, integration and UI tests.
8/101 credit -
Checked
Playwright accessibility tests
Writes Playwright and axe tests for WCAG, focus and ARIA, so accessibility bugs fail the build early.
7/101 credit -
Checked
Go table driven tests
Writes Go tests with table cases, fakes, fuzzing, benchmarks and golden files that stay fast and reliable.
8/101 credit