Skip to content

IMutationDeps

readonly git: (args) => IGitResult

Run git at the repository root, no shell; a git that cannot start is a non-zero status.

readonly string[]

IGitResult


readonly installed: (packageDir) => (name) => boolean

Whether a package resolves from packageDir, the way Stryker loads its plugins.

string

(name) => boolean


readonly loadConfig: (file) => Promise<unknown>

The module a Stryker config file exports (a dynamic import).

string

Promise<unknown>


readonly log: (line) => void

string

void


readonly now: () => number

number


readonly readFile: (file) => string | null

The text of a file, or null when it does not exist.

string

string | null


readonly removeFile: (file) => void

Remove a file; one that is not there is not an error.

string

void


readonly root: string

The repository root, absolute.


readonly stryker: (packageDir, args, capture) => Promise<IStrykerExit>

Run Stryker with packageDir as its cwd. With capture its output is collected (and printed once it has ended) instead of streamed: a changed-line run reads Stryker’s own count of what it instrumented.

string

readonly string[]

boolean

Promise<IStrykerExit>


readonly writeFile: (file, text) => void

Write a file, creating the directories above it.

string

string

void