Files
test-repo/tests/format/misc/front-matter/with-plugins/format.test.js
T
2025-10-30 22:16:54 +08:00

32 lines
587 B
JavaScript

import { outdent } from "outdent";
import prettierPluginDummyToml from "../../../../config/prettier-plugins/prettier-plugin-dummy-toml/index.js";
runFormatTest(
{
importMeta: import.meta,
snippets: [
outdent`
+++
TOML Front Matter content
+++
`,
outdent`
---toml
TOML Front Matter content
---
`,
],
},
[
"markdown",
"mdx",
"css",
"scss",
"less",
"html",
// Can't test since it doesn't print new line
// "glimmer",
],
{ plugins: [prettierPluginDummyToml] },
);