import mdx from '@mdx-js/mdx' import remarkDocz from 'remark-docz' import plugin from './' const content = ` import { Playground } from 'docz' {() => { const foo = 'foo' return (
{foo}
) }}
` test('adding custom props on ', async () => { const result = await mdx(content, { remarkPlugins: [remarkDocz], rehypePlugins: [[plugin, { root: __dirname }]], }) expect(result).toMatch('__position={0}') expect(result).toMatchSnapshot() expect(result).toMatchSnapshot() })