@contract-case/case-core-plugin-function
Version:
ContractCase core function plugin, allowing validation of arbitrary functions
6 lines • 689 B
TypeScript
import { MOCK_FUNCTION_CALLER, MockFunctionCallerDescriptor, MockFunctionDescriptor } from '@contract-case/case-core-plugin-function-dsl';
import { MatchContext, MockData, MockExecutor } from '@contract-case/case-plugin-base';
import { AllSetup } from './types';
export declare const setupMockFunctionCaller: ({ request: expectedArguments, response: returnValue, functionName: functionHandle, }: MockFunctionDescriptor, outerContext: MatchContext) => Promise<MockData<AllSetup, typeof MOCK_FUNCTION_CALLER>>;
export declare const mockFunctionCallerExecutor: MockExecutor<typeof MOCK_FUNCTION_CALLER, MockFunctionCallerDescriptor, AllSetup>;
//# sourceMappingURL=mockFunctionCaller.d.ts.map