Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

514 B
Raw Blame
// react-markdown v9 depends on unified v11 which uses a CallableInstance
// pattern that breaks under Sucrase's .call(void 0) transform in Jest.
// This mock provides a lightweight replacement that renders markdown children
// as plain text, which is sufficient for component tests.

const React = require('react')

function ReactMarkdown({ children }) {
    return React.createElement('div', { 'data-testid': 'react-markdown' }, children)
}

module.exports = ReactMarkdown
module.exports.default = ReactMarkdown