Skip to content

Interface: MountInkOptions

@termwright/ink


@termwright/ink / MountInkOptions

Defined in: ink/src/mount.tsx:45

Options for mountInk.

readonly optional columns?: number

Defined in: ink/src/mount.tsx:47

Terminal width in cells. Default 80.


readonly optional env?: Readonly<Record<string, string>>

Defined in: ink/src/mount.tsx:57

Extra variables for the in-process probe session, never written to process.env.


readonly optional envMode?: 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.


readonly optional ink?: MountInkRenderOptions

Defined in: ink/src/mount.tsx:86

Ink render options this mount overrides.


readonly optional logs?: readonly AppLogSource[]

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.


readonly optional rows?: number

Defined in: ink/src/mount.tsx:49

Terminal height in cells. Default 24.


readonly optional settleTimeout?: number

Defined in: ink/src/mount.tsx:84

How long the initial mount and each rerender may take to commit.


readonly optional timeouts?: TimeoutClasses

Defined in: ink/src/mount.tsx:82

Driver timeout classes, as in launchTerminal.


readonly optional wrapper?: 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.