Skip to content

Interface: LaunchInkFixtureOptions

@termwright/ink


@termwright/ink / LaunchInkFixtureOptions

Defined in: ink/src/fixture.ts:30

Options for launchInkFixture.

readonly optional columns?: number

Defined in: ink/src/fixture.ts:44

Terminal width in cells. Default 80.


readonly component: 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.


readonly optional cwd?: string

Defined in: ink/src/fixture.ts:48

Working directory of the fixture process.


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

Defined in: ink/src/fixture.ts:50

Extra environment variables for the fixture process.


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


readonly optional exportName?: string

Defined in: ink/src/fixture.ts:40

Export to render. Default default.


readonly optional logs?: readonly AppLogSource[]

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.


readonly optional nodeArgs?: readonly string[]

Defined in: ink/src/fixture.ts:69

Arguments inserted before the runner, e.g. ['--import', 'tsx'].


readonly optional props?: JsonProps

Defined in: ink/src/fixture.ts:42

Props for the component, transferred as bounded JSON. Never functions.


readonly optional rows?: number

Defined in: ink/src/fixture.ts:46

Terminal height in cells. Default 24.


readonly optional settleTimeout?: number

Defined in: ink/src/fixture.ts:73

How long the fixture may take to commit its first frame.


readonly optional timeouts?: TimeoutClasses

Defined in: ink/src/fixture.ts:71

Driver timeout classes, as in launchTerminal.