import mdx from '@mdx-js/mdx' import plugin from './' const content = ` import { Playground } from 'docz' {() => { const foo = 'foo' return (
{foo}
) }}
` test('rendering children as function', async () => { const result = await mdx(content, { remarkPlugins: [plugin] }) expect(result).toMatchSnapshot() })