Interface: LaunchFixtureOptions
@termwright/test / LaunchFixtureOptions
Interface: LaunchFixtureOptions
Section titled “Interface: LaunchFixtureOptions”Defined in: test/src/fixtures.ts:71
What a test may override when launching a program.
Extends
Section titled “Extends”Omit<LaunchOptions,"command"|"operationBudget">
Properties
Section titled “Properties”artifactSecurity?
Section titled “artifactSecurity?”
readonlyoptionalartifactSecurity?:ArtifactSecurityPolicy
Defined in: driver/dist/session-DOkKra9W.d.ts:90
One policy for every artifact boundary. Defaults to secure redacted.
Inherited from
Section titled “Inherited from”Omit.artifactSecurity
columns?
Section titled “columns?”
readonlyoptionalcolumns?:number
Defined in: driver/dist/session-DOkKra9W.d.ts:68
Inherited from
Section titled “Inherited from”Omit.columns
command?
Section titled “command?”
readonlyoptionalcommand?: readonlystring[]
Defined in: test/src/fixtures.ts:73
Defaults to config.command.
readonlyoptionalcwd?:string
Defined in: driver/dist/session-DOkKra9W.d.ts:44
Inherited from
Section titled “Inherited from”Omit.cwd
debug?
Section titled “debug?”
readonlyoptionaldebug?:boolean
Defined in: driver/dist/session-DOkKra9W.d.ts:52
Streams a live log of API calls, waits, revisions and diagnostics to
stderr. Also enabled by TERMWRIGHT_DEBUG=1 (=all adds raw PTY traffic).
Inherited from
Section titled “Inherited from”Omit.debug
readonlyoptionalenv?:Readonly<Record<string,string>>
Defined in: driver/dist/session-DOkKra9W.d.ts:45
Inherited from
Section titled “Inherited from”Omit.env
envMode?
Section titled “envMode?”
readonlyoptionalenvMode?:EnvMode
Defined in: driver/dist/session-DOkKra9W.d.ts:47
Defaults to 'replace': a test process’s secrets are not the child’s.
Inherited from
Section titled “Inherited from”Omit.envMode
files?
Section titled “files?”
readonlyoptionalfiles?:Readonly<Record<string,SeedFile>>
Defined in: test/src/fixtures.ts:85
Files to create in the working directory before the program starts, keyed by relative path. Directories are created as needed.
Example
Section titled “Example”await terminal.launch({ files: { 'config.json': '{"theme":"dark"}', 'notes/todo.md': '- write tests\n' },});
readonlyoptionallogs?: readonlyAppLogSource[]
Defined in: driver/dist/session-DOkKra9W.d.ts:58
Log files to follow for the lifetime of the session. A file that does not exist yet is waited for; one that already exists is followed from its current end, so a session never replays a previous run.
Inherited from
Section titled “Inherited from”Omit.logs
recording?
Section titled “recording?”
readonlyoptionalrecording?:RecordingOptions
Defined in: driver/dist/session-DOkKra9W.d.ts:88
Inherited from
Section titled “Inherited from”Omit.recording
requiredCapabilities?
Section titled “requiredCapabilities?”
readonlyoptionalrequiredCapabilities?: readonly ("focus"|"pointer-input"|"semantic-tree"|"stable-identity"|"intended-geometry"|"clipped-geometry"|"painted-region"|"pointer-geometry"|"pointer-hit-testing"|"scroll"|"render-order"|"action-strategies"|"keyboard-input"|"focus-input"|"paired-revisions")[]
Defined in: driver/dist/session-DOkKra9W.d.ts:101
Capabilities that must be present in the frozen session contract.
Launch waits for negotiation and throws CapabilityUnavailableError
before returning a harness when any requirement is missing.
Inherited from
Section titled “Inherited from”Omit.requiredCapabilities
readonlyoptionalrows?:number
Defined in: driver/dist/session-DOkKra9W.d.ts:69
Inherited from
Section titled “Inherited from”Omit.rows
scrollbackLines?
Section titled “scrollbackLines?”
readonlyoptionalscrollbackLines?:number
Defined in: driver/dist/session-DOkKra9W.d.ts:85
Inherited from
Section titled “Inherited from”Omit.scrollbackLines
semanticFrameQueueCapacity?
Section titled “semanticFrameQueueCapacity?”
readonlyoptionalsemanticFrameQueueCapacity?:number
Defined in: driver/dist/session-DOkKra9W.d.ts:84
Negotiated ceiling for semantic frames in flight between a framework probe and the driver. Defaults to 32 and is capped at 256. Compatible probes may use it as their publication budget; a full queue still fails closed instead of dropping or retrying a semantic revision.
Inherited from
Section titled “Inherited from”Omit.semanticFrameQueueCapacity
semanticNegotiationMs?
Section titled “semanticNegotiationMs?”
readonlyoptionalsemanticNegotiationMs?:number
Defined in: driver/dist/session-DOkKra9W.d.ts:77
Maximum time to discover an optional semantic adapter. Defaults to 2,000
ms for generic auto-detection. A peer accepted within that window keeps
its own bounded hello deadline; peers first seen afterwards are refused.
When requiredCapabilities is non-empty, the default discovery budget is
the larger of 2,000 ms and the session ready timeout.
Inherited from
Section titled “Inherited from”Omit.semanticNegotiationMs
shellIntegration?
Section titled “shellIntegration?”
readonlyoptionalshellIntegration?:"external"|"termwright-posix"|"termwright-powershell"
Defined in: driver/dist/session-DOkKra9W.d.ts:95
Termwright-managed modes instrument an interactive shell with exact
command markers. Test authors should normally use terminal.openShell().
Inherited from
Section titled “Inherited from”Omit.shellIntegration
template?
Section titled “template?”
readonlyoptionaltemplate?:string|SeedTemplate
Defined in: test/src/fixtures.ts:90
A directory to copy in first, so a test can start from a whole project and
change only what it is about. files are written over it.
terminalProfile?
Section titled “terminalProfile?”
readonlyoptionalterminalProfile?:TerminalProfileId
Defined in: driver/dist/session-DOkKra9W.d.ts:67
Terminal profile: which width tables and which of the switches terminals
disagree on this session uses. The built-in ids are 'default' and
'cjk-wide'.
It is recorded with the session so a replay, a screenshot and the runner pane can count characters exactly as the live session did.
Inherited from
Section titled “Inherited from”Omit.terminalProfile
timeouts?
Section titled “timeouts?”
readonlyoptionaltimeouts?:TimeoutClasses
Defined in: driver/dist/session-DOkKra9W.d.ts:86
Inherited from
Section titled “Inherited from”Omit.timeouts
trace?
Section titled “trace?”
readonlyoptionaltrace?:TraceMode
Defined in: test/src/fixtures.ts:92
Trace policy for this session, overriding the file’s and the project’s.