diff --git a/tests/cases/gts/issue-374.gts b/tests/cases/gts/issue-374.gts new file mode 100644 index 00000000..44e9f8c0 --- /dev/null +++ b/tests/cases/gts/issue-374.gts @@ -0,0 +1,3 @@ + satisfies unknown; diff --git a/tests/unit-tests/__snapshots__/format.test.ts.snap b/tests/unit-tests/__snapshots__/format.test.ts.snap index 41951c2a..b2261735 100644 --- a/tests/unit-tests/__snapshots__/format.test.ts.snap +++ b/tests/unit-tests/__snapshots__/format.test.ts.snap @@ -98,6 +98,23 @@ class MyComponent extends Component { " `; +exports[`format > config > default > it formats ../cases/gjs/component-class-with-template-literal.gjs 2`] = ` +"import Component from "@glimmer/component"; + +/** It's a component */ +class MyComponent extends Component { + + + what = \`template literal that is not a template\`; +} +" +`; + exports[`format > config > default > it formats ../cases/gjs/default-export.gjs 1`] = ` "