interface MockViewDefinition No documentation.
Properties
routes
readonly routes?: Readonly<Record<string, MockRoute>>; Handlers by route suffix, such as Increment, SetStep or CanSave.
collections
readonly collections?: Readonly<Record<string, (item: unknown) => string>>; Row keys of each keyed collection field, which collection(field) edits with delta frames.
checkedFields
readonly checkedFields?: readonly string[]; Wire names of fields with checked writes (Write{Property} and fieldBaseline).
operations
readonly operations?: Readonly<Record<string, MockOperationHandler | "manual">>; Operation handlers by command member, such as Save. Without one, an operation runs the command's route handler, if any, and succeeds.
streams
readonly streams?: readonly string[]; Command members whose operations yield a stream.
contract
readonly contract?: string; The generated contract, {ViewModel full name}:{fingerprint}. With it, repeating Start{Command} for a finished operation returns its terminal status, as .NET does.