Files
test-repo/tests/format/js/comments/format.test.js
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
319 B
JavaScript
Raw Normal View History

const fixtures = {
2022-01-04 17:00:25 +08:00
importMeta: import.meta,
snippets: [
"var a = { /* comment */ \nb };", // trailing whitespace after comment
"var a = { /* comment */\nb };",
],
};
2025-04-17 04:53:05 +08:00
runFormatTest(fixtures, ["babel", "flow", "typescript"]);
runFormatTest(fixtures, ["babel", "flow", "typescript"], { semi: false });