IMutationDeps
Properties
Section titled “Properties”
readonlygit: (args) =>IGitResult
Run git at the repository root, no shell; a git that cannot start is a non-zero status.
Parameters
Section titled “Parameters”readonly string[]
Returns
Section titled “Returns”installed
Section titled “installed”
readonlyinstalled: (packageDir) => (name) =>boolean
Whether a package resolves from packageDir, the way Stryker loads its plugins.
Parameters
Section titled “Parameters”packageDir
Section titled “packageDir”string
Returns
Section titled “Returns”(name) => boolean
loadConfig
Section titled “loadConfig”
readonlyloadConfig: (file) =>Promise<unknown>
The module a Stryker config file exports (a dynamic import).
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<unknown>
readonlylog: (line) =>void
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
readonlynow: () =>number
Returns
Section titled “Returns”number
readFile
Section titled “readFile”
readonlyreadFile: (file) =>string|null
The text of a file, or null when it does not exist.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string | null
removeFile
Section titled “removeFile”
readonlyremoveFile: (file) =>void
Remove a file; one that is not there is not an error.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
readonlyroot:string
The repository root, absolute.
stryker
Section titled “stryker”
readonlystryker: (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.
Parameters
Section titled “Parameters”packageDir
Section titled “packageDir”string
readonly string[]
capture
Section titled “capture”boolean
Returns
Section titled “Returns”Promise<IStrykerExit>
writeFile
Section titled “writeFile”
readonlywriteFile: (file,text) =>void
Write a file, creating the directories above it.
Parameters
Section titled “Parameters”string
string
Returns
Section titled “Returns”void