@contract-case/case-core
Version:
Core functionality for the ContractCase contract testing suite
18 lines • 989 B
TypeScript
import { CoreArrayLengthMatcher, CoreAndCombinationMatcher, CoreCascadingMatcher, MatchContextByType } from '@contract-case/case-entities-internal';
import { AnyCaseMatcherOrData } from '@contract-case/case-plugin-dsl-types';
type ArrayLengthOptions = {
minLength?: number;
maxLength?: number;
};
export declare const coreArrayLengthMatcher: ({ minLength, maxLength, }: ArrayLengthOptions) => CoreArrayLengthMatcher;
export declare const coreAndMatcher: (...matchers: AnyCaseMatcherOrData[]) => CoreAndCombinationMatcher;
/**
* Everything inside this matcher will be matched on the shape of the data (ie, type alone), unless overriden with other matchers
*
* Use this to switch out of the default `exactlyLike` matching.
*
* @param content - The example object, array, primitive or matcher to match against
*/
export declare const coreShapedLike: (content: AnyCaseMatcherOrData) => CoreCascadingMatcher & MatchContextByType;
export {};
//# sourceMappingURL=auxiliary.d.ts.map