code: function debugDOM(htmlElement) {
    const limit = process.env.DEBUG_PRINT_LIMIT || 7000
    const inNode =
      typeof process !== 'undefined' &&
      process.versions !== undefined &&
      process.versions.node !== undefined
    /* istanbul ignore next */
    const window =
      (htmlElement.ownerDocument && htmlElement.ownerDocument.defaultView) ||
      undefined
    const inCypress =
      (typeof global !== 'undefined' && global.Cypress) ||
      (typeof window !== 'undefined' && window.Cypress)
    /* istanbul ignore else */
    if (inCypress) {
      return ''
    } else if (inNode) {
      return prettyDOM(htmlElement, limit)
    } else {
      return prettyDOM(htmlElement, limit, {highlight: false})
    }
  }
docs: /* eslint-disable complexity