2025-09-28 19:36:04 +08:00
|
|
|
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
|
|
|
|
|
---
|
|
|
|
|
`,
|
|
|
|
|
],
|
|
|
|
|
},
|
2025-10-30 22:16:54 +08:00
|
|
|
[
|
|
|
|
|
"markdown",
|
|
|
|
|
"mdx",
|
|
|
|
|
"css",
|
|
|
|
|
"scss",
|
|
|
|
|
"less",
|
|
|
|
|
"html",
|
|
|
|
|
// Can't test since it doesn't print new line
|
|
|
|
|
// "glimmer",
|
|
|
|
|
],
|
2025-09-28 19:36:04 +08:00
|
|
|
{ plugins: [prettierPluginDummyToml] },
|
|
|
|
|
);
|