@contract-case/case-plugin-base
Version:
Plugin framework for writing plugins for the ContractCase test framework
16 lines • 695 B
TypeScript
import { AnyMockDescriptor } from '@contract-case/case-plugin-dsl-types';
import { MatchContext } from '../context/types';
/**
* Helper function that will name this mock if it isn't already named.
* @public
* @remarks
*
* You probably don't need to use this function, it is used by ContractCase internals.
* TODO: it could be moved to the core.
*
* @param mock - a Mock Descriptor object
* @param context - the {@link MatchContext} for this run
* @returns a mock descriptor object where the request and response are guaranteed to be named.
*/
export declare const defaultNameMock: <M extends AnyMockDescriptor>(mock: M, context: MatchContext) => M;
//# sourceMappingURL=names.d.ts.map