tuil
ReferencePackages@mwillbanks/tuil-testing-inkAPI

TuilTestInstance

interface exported by @mwillbanks/tuil-testing-ink.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-testing-ink.

export interface TuilTestInstance {
  readonly app: TuilApp;
  readonly ready: Promise<void>;
  readonly screen: SemanticScreen;
  readonly user: TuilUser;
  readonly frames: readonly string[];
  rerender(component: ReactElement): void;
  resize(width: number, height?: number): void;
  cleanup(): Promise<void>;
}

Members

MemberTypeRequiredDescriptionRelated types
appTuilApp<Record<string, unknown>, import("@mwillbanks/tuil-events").EventMap, import("@mwillbanks/tuil").TuilExtensionPoints>YesThe app member uses the TuilApp<Record<string, unknown>, import("@mwillbanks/tuil-events").EventMap, import("@mwillbanks/tuil").TuilExtensionPoints> contract.EventMap, TuilExtensionPoints
readyPromise<void>YesThe ready member uses the Promise<void> contract.
screenSemanticScreenYesThe screen member uses the SemanticScreen contract.SemanticScreen
userTuilUserYesThe user member uses the TuilUser contract.TuilUser
framesreadonly string[]YesThe frames member uses the readonly string[] contract.
rerender(component: ReactElement) => voidYesThe rerender member uses the (component: ReactElement) => void contract.
resize(width: number, height?: number) => voidYesThe resize member uses the (width: number, height?: number) => void contract.
cleanup() => Promise<void>YesThe cleanup member uses the () => Promise<void> contract.

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-testing-ink

On this page