Files
cablecreations.de/node_modules/remark-mdx-frontmatter/dist/remark-mdx-frontmatter.test.js
2026-01-19 19:13:27 +01:00

21 lines
694 B
JavaScript

import { compile } from '@mdx-js/mdx';
import remarkFrontmatter from 'remark-frontmatter';
import remarkMdxFrontmatter from 'remark-mdx-frontmatter';
import { testFixturesDirectory } from 'snapshot-fixtures';
testFixturesDirectory({
directory: new URL('../fixtures', import.meta.url),
prettier: true,
write: true,
tests: {
'expected.jsx'(file, options) {
return compile(file, {
remarkPlugins: [
[remarkFrontmatter, ['yaml', 'toml']],
[remarkMdxFrontmatter, options]
],
jsx: true
});
}
}
});
//# sourceMappingURL=remark-mdx-frontmatter.test.js.map