Skip to content

IMutationRequest

readonly optional accept?: boolean

Write the measured score as the baseline, from a complete run.


readonly optional acceptHint?: string

How to record a new baseline, in failure messages (your own command, say).


readonly optional allowLowering?: boolean

With accept: allow the baseline to go down past the tolerance.


readonly optional baselineFile?: string

The baseline in the target package. Defaults to mutation-baseline.json.


readonly optional changed?: { baseRef?: string; } | null

A changed-line run against the merge base of HEAD and baseRef (default DEFAULT_BASE_REF); absent or null for a whole-package run.


readonly optional config?: string | null

A Stryker config other than the package’s own, relative to the package. A partial run: never judged.


readonly optional configFile?: string

The Stryker config in the target package. Defaults to CONFIG_FILE.


readonly optional dropTolerance?: number

Points under the baseline that still pass. Defaults to 1.


readonly optional force?: boolean

A record-only target: judge every mutant again instead of reusing the incremental file.


readonly optional incremental?: boolean

A ratchet target: reuse the incremental file (the run is then not judged against the baseline).


readonly optional ledgerFile?: string

The ledger in the target package. Defaults to mutation-ledger.json.


readonly optional neverMutate?: readonly string[]

Repo-relative path prefixes a changed-line run never mutates. Defaults to none.


readonly optional reportDir?: string

Where reports must live, repo-relative. Defaults to REPORT_DIR.


readonly optional staleMargin?: number

Points over the baseline before it is stale. Defaults to 2.


readonly target: IMutationTarget