import Content from "./Content" import React from "react" import { render } from "tests" describe("Content", () => { it("renders and uses custom components and plugins", () => { const mockCodeComponent = jest.fn(() => {"Custom code"}) const mockEmComponent = jest.fn(() => {"Custom em"}) const props = { components: { code: mockCodeComponent, em: mockEmComponent }, content: ` ## Markdown Content Looks **awesome!!** `, rehypePlugins: [], remarkPlugins: [] } const { container } = render() expect(container.firstChild).toMatchSnapshot() }) })