UNPKG

@case-contract-testing/case

Version:

Next-generation contract testing suite

17 lines (16 loc) 830 B
import { type AnyCaseNodeOrData, type CoreAndCombinationMatcher, type CoreArrayLengthMatcher, CoreCascadingMatcher } from './types'; type ArrayLengthOptions = { minLength?: number; maxLength?: number; }; export declare const coreArrayLengthMatcher: ({ minLength, maxLength, }: ArrayLengthOptions) => CoreArrayLengthMatcher; export declare const coreAndMatcher: (...matchers: AnyCaseNodeOrData[]) => 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: AnyCaseNodeOrData) => CoreCascadingMatcher; export {};