This commit is contained in:
2026-01-19 19:13:27 +01:00
commit 9d0442e88f
4968 changed files with 1142016 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
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