zidane-ui/ app/ testing
import { … } from 'zidane-ui/app/testing'ui/src/app/testing/index.ts
Functions#
createFixtureAppHostFunction#
Creates an AppHost held in memory, with each area's fixture host (createFixtureHost, createFixtureOnboardingHost).
function createFixtureAppHost(options?: FixtureAppHostOptions): AppHostParameters
| Name | Type | Default | Description |
|---|---|---|---|
| options? | FixtureAppHostOptions | {} | Each area's fixture, or |
Returns
Interfaces#
FixtureAppHostOptionsInterface#
Options for createFixtureAppHost: each area's fixture, or false to leave the area out.
interface FixtureAppHostOptionsProperties
| Name | Type | Description |
|---|---|---|
| appearance? | false | FixtureAppearanceOptions | The appearance fixture host's options. Default: none, the app applies no appearance. |
| approvals? | false | FixtureApprovalsOptions | The approvals fixture host's options: pending approvals and the safelist. Default: none pending. |
| chat? | false | ChatFixture | The chat fixture's sessions, transcripts, models and interactions. Default: no sessions. |
| chatOptions? | FixtureHostOptions | How the chat fixture host behaves: editable, scripted replies, streaming pace. |
| composer? | false | FixtureComposerHostOptions | The rich composer's fixture host: drafts, completions, ghost text. Default: none, no composer host. |
| files? | false | FixtureFilesHostOptions | The files fixture host's options: the folder's files, git status and patches. Default: none, no files host. |
| git? | false | FixtureGitOptions | The git fixture host's options: branches, pull requests, environment kinds and remote folders. Default: none, no git host. |
| keybindings? | false | FixtureKeybindingsOptions | The keybindings fixture host's options: stored overrides. Default: none, the default bindings. |
| machines? | false | FixtureMachinesOptions | The machines fixture host's options: hosts, machines, updates, tokens, the daemon. Default: none, no machines host. |
| onboarding? | false | FixtureOnboardingOptions | The onboarding fixture host's options. Default: its defaults. |
| palette? | false | FixturePaletteOptions | The palette fixture host's options. Default: its demo data. |
| session? | false | SessionFixture | The session panels' fixture: todos, queues and artifacts. Default: none. |
| settings? | false | FixtureSettingsOptions | The settings fixture host's options: stored settings, read-only. Default: none, no settings host. |
| sidebar? | false | FixtureSidebarHostOptions | The sidebar fixture host's options: environment commands, Finder and windows. Default: none, no sidebar host. |
| terminal? | false | FixtureTerminalOptions | The terminal fixture host's options: terminals per scope. Default: none, no terminal host. |
| workspace? | false | FixtureWorkspaceOptions | The workspace fixture host's options: stored layouts and extension panels. Default: none stored. |