Interface: LaunchInkFixtureOptions
@termwright/ink / LaunchInkFixtureOptions
Interface: LaunchInkFixtureOptions
Section titled “Interface: LaunchInkFixtureOptions”Defined in: ink/src/fixture.ts:30
Options for launchInkFixture.
Properties
Section titled “Properties”columns?
Section titled “columns?”
readonlyoptionalcolumns?:number
Defined in: ink/src/fixture.ts:44
Terminal width in cells. Default 80.
component
Section titled “component”
readonlycomponent:string|URL
Defined in: ink/src/fixture.ts:38
The module holding the component: an absolute path or a file: URL.
It is imported by the fixture process, so it must be something Node can
load directly — .js/.mjs, or .ts if the fixture runs under a loader
passed in LaunchInkFixtureOptions.nodeArgs.
readonlyoptionalcwd?:string
Defined in: ink/src/fixture.ts:48
Working directory of the fixture process.
readonlyoptionalenv?:Readonly<Record<string,string>>
Defined in: ink/src/fixture.ts:50
Extra environment variables for the fixture process.
envMode?
Section titled “envMode?”
readonlyoptionalenvMode?:EnvMode
Defined in: ink/src/fixture.ts:61
How the fixture’s environment is built, as in launchTerminal. Default
'replace': the process starts from a documented allowlist plus
LaunchInkFixtureOptions.env, so a variable on a developer’s laptop
cannot change what CI sees.
Unlike a mount, this is real isolation — the fixture is a separate process
and its process.env is exactly what the driver built. Pass 'inherit'
when the component genuinely needs the runner’s environment.
exportName?
Section titled “exportName?”
readonlyoptionalexportName?:string
Defined in: ink/src/fixture.ts:40
Export to render. Default default.
readonlyoptionallogs?: readonlyAppLogSource[]
Defined in: ink/src/fixture.ts:67
Log files to follow for the lifetime of the fixture, as in
launchTerminal. Entries arrive on the session timeline as app-log
events; collectLogs in @termwright/test reads them off the harness.
nodeArgs?
Section titled “nodeArgs?”
readonlyoptionalnodeArgs?: readonlystring[]
Defined in: ink/src/fixture.ts:69
Arguments inserted before the runner, e.g. ['--import', 'tsx'].
props?
Section titled “props?”
readonlyoptionalprops?:JsonProps
Defined in: ink/src/fixture.ts:42
Props for the component, transferred as bounded JSON. Never functions.
readonlyoptionalrows?:number
Defined in: ink/src/fixture.ts:46
Terminal height in cells. Default 24.
settleTimeout?
Section titled “settleTimeout?”
readonlyoptionalsettleTimeout?:number
Defined in: ink/src/fixture.ts:73
How long the fixture may take to commit its first frame.
timeouts?
Section titled “timeouts?”
readonlyoptionaltimeouts?:TimeoutClasses
Defined in: ink/src/fixture.ts:71
Driver timeout classes, as in launchTerminal.