Skip to main content

ArrayEachEntryMatchesWithExample

Matches an array where each element matches the provided matcher, but with a custom example for the whole array.

This example must still pass the provided matcher

import { matchers } from '@contract-case/case-definition-dsl'

new matchers.arrays.ArrayEachEntryMatchesWithExample(matcher: any, example: any[])

Parameters

NameTypeDescription
matcheranyThe matcher for each entry in the array.
exampleany[]An optional example of the whole array to return.