auto-builder-sdk
Version:
SDK for building Auto Builder workflow plugins
14 lines (13 loc) • 607 B
TypeScript
import type { IExecutionContext, INode } from './ab-types';
/**
* Create a minimal stub INode for unit testing nodes.
* Allows overriding any field via the `overrides` parameter.
*/
export declare const makeStubNode: (type: string, overrides?: Partial<INode>) => INode;
/**
* Create a minimal stub IExecutionContext for unit testing.
* Only the commonly-accessed fields are populated; the rest are filled
* with reasonable defaults. You can override any part through the
* `overrides` argument.
*/
export declare const makeStubContext: (overrides?: Partial<IExecutionContext>) => IExecutionContext;