init
This commit is contained in:
21
node_modules/remark-mdx-frontmatter/dist/remark-mdx-frontmatter.test.js
generated
vendored
Normal file
21
node_modules/remark-mdx-frontmatter/dist/remark-mdx-frontmatter.test.js
generated
vendored
Normal 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
|
||||
Reference in New Issue
Block a user