export const toHaveDateOnOrBeforeMatcher: jasmine.CustomMatcherFactory = () => {
  return {
    compare(value: unknown, propPath: string, other: unknown) {
      const pass = isDateOnOrBefore(other, getIn(propPath.split('.'), value));
      const message = pass