Skip to main content

ShapedLike

Everything inside this matcher will be matched on the shape of the data (ie, type alone), unless overridden with other matchers.

Use this to switch out of the default exactlyLike matching.

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

new matchers.modifiers.ShapedLike(content: any)

Parameters

NameTypeDescription
contentanyThe object, array, primitive or matcher to match the shape against.