Interface: MountInkOptions
@termwright/ink / MountInkOptions
Interface: MountInkOptions
Section titled “Interface: MountInkOptions”Defined in: ink/src/mount.tsx:45
Options for mountInk.
Properties
Section titled “Properties”columns?
Section titled “columns?”
readonlyoptionalcolumns?:number
Defined in: ink/src/mount.tsx:47
Terminal width in cells. Default 80.
readonlyoptionalenv?:Readonly<Record<string,string>>
Defined in: ink/src/mount.tsx:57
Extra variables for the in-process probe session, never written to process.env.
envMode?
Section titled “envMode?”
readonlyoptionalenvMode?:EnvMode
Defined in: ink/src/mount.tsx:71
How the session environment is built, as in launchTerminal. Default
'replace'.
What this can and cannot do in a mount. It shapes the environment the
driver computes and hands to the internal probe. It cannot touch what the component reads from
process.env, because that object belongs to the test runner and a mount
deliberately never mutates it. 'replace' therefore isolates the session,
not the process.
Environment isolation of the application itself is a property only a
separate process can have — use launchInkFixture for that.
readonlyoptionalink?:MountInkRenderOptions
Defined in: ink/src/mount.tsx:86
Ink render options this mount overrides.
readonlyoptionallogs?: readonlyAppLogSource[]
Defined in: ink/src/mount.tsx:80
Log files to follow for the lifetime of the mount, as in launchTerminal.
Entries arrive on the session timeline as app-log events, interleaved
with input and renders, which is what makes “the component logged this
after that keystroke” answerable. collectLogs in @termwright/test
reads them straight off the harness.
readonlyoptionalrows?:number
Defined in: ink/src/mount.tsx:49
Terminal height in cells. Default 24.
settleTimeout?
Section titled “settleTimeout?”
readonlyoptionalsettleTimeout?:number
Defined in: ink/src/mount.tsx:84
How long the initial mount and each rerender may take to commit.
timeouts?
Section titled “timeouts?”
readonlyoptionaltimeouts?:TimeoutClasses
Defined in: ink/src/mount.tsx:82
Driver timeout classes, as in launchTerminal.
wrapper?
Section titled “wrapper?”
readonlyoptionalwrapper?:ComponentType<{children:ReactNode; }>
Defined in: ink/src/mount.tsx:55
Providers the component needs — a theme, a store, a router. Applied inside the error boundary, so a wrapper that throws is reported like any other render failure.