Sanity Library Reference Docs
    Preparing search index...

    The slice of a bench startedInstanceFixture drives — structural, so the fixture module needs no import of the bench itself.

    interface FixtureBench {
        deployDefinitions: (
            args: {
                definitions: {
                    description?: string;
                    fields?: FieldEntry[];
                    groups?: Group[];
                    initialStage: string;
                    lifecycle?: WorkflowLifecycle;
                    name: string;
                    predicates?: Record<string, string>;
                    roleAliases?: RoleAliases;
                    semantics?: Semantic[];
                    stages: Stage[];
                    start?: StartBlock;
                    title: string;
                }[];
                expectedMinReaderModel: number;
            },
        ) => Promise<unknown>;
        startInstance: (
            args: { definition: string; instanceId?: string },
        ) => Promise<{ instance: WorkflowInstance }>;
    }
    Index

    Properties

    deployDefinitions: (
        args: {
            definitions: {
                description?: string;
                fields?: FieldEntry[];
                groups?: Group[];
                initialStage: string;
                lifecycle?: WorkflowLifecycle;
                name: string;
                predicates?: Record<string, string>;
                roleAliases?: RoleAliases;
                semantics?: Semantic[];
                stages: Stage[];
                start?: StartBlock;
                title: string;
            }[];
            expectedMinReaderModel: number;
        },
    ) => Promise<unknown>
    startInstance: (
        args: { definition: string; instanceId?: string },
    ) => Promise<{ instance: WorkflowInstance }>