@tao.js/react
v0.21.0
Published
Adapter to use tao.js with React
Readme
Mutation testing (@tao.js/react)
StrykerJS + Jest for the React adapter package.
Run
From repo root:
pnpm test:mutation:reactOr from this package:
pnpm test:mutationHTML/JSON reports land in reports/mutation/ (gitignored).
Notes
- Config:
stryker.config.json—inPlace: trueso Jest can resolve the monorepojest.preset.cjsand shared ReactmoduleNameMapper. testEnvironmentis set explicitly on the package Jest config and as Stryker’s jsdom env wrapper — Stryker does not merge preset-providedtestEnvironmentunderperTestcoverage analysis.- Barrel re-exports (
index.js,all.js,orig.js) are excluded from mutation (same as coverage). - Disable equivalent mutants with
// Stryker disable … : reason(colon required; placedisablebefore atry, not inside it). - Latest score (2026-07-18): 100% (270 killed, 11 timeout, 0 survived; thresholds high=95).
- Optional
debugconsole paths and redundant Provider-{}null checks are Stryker-disabled as equivalent.
See @tao.js/core (packages/tao/README.mutation.md) for the pattern used to raise scores.
