From d8ff0b1aaa95630dfadff8c4554633cc40396f1a Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Fri, 11 Jul 2025 20:38:30 -0400 Subject: [PATCH 1/2] Repro: #374 --- tests/cases/gts/issue-374.gts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/cases/gts/issue-374.gts diff --git a/tests/cases/gts/issue-374.gts b/tests/cases/gts/issue-374.gts new file mode 100644 index 0000000..11d0c8e --- /dev/null +++ b/tests/cases/gts/issue-374.gts @@ -0,0 +1,11 @@ +import pageTitle from 'ember-page-title/helpers/page-title'; + + satisfies unknown; From d9aa2fa0b15bda34ea92a21accda68a7ec91f30e Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Fri, 11 Jul 2025 21:09:24 -0400 Subject: [PATCH 2/2] Update snapshots... no error? #374 repros with an erorr. hm --- .../unit-tests/__snapshots__/format.test.ts.snap | 15 +++++++++++++++ .../config/__snapshots__/semi-false.test.ts.snap | 15 +++++++++++++++ .../template-export-default.test.ts.snap | 15 +++++++++++++++ 3 files changed, 45 insertions(+) diff --git a/tests/unit-tests/__snapshots__/format.test.ts.snap b/tests/unit-tests/__snapshots__/format.test.ts.snap index 41951c2..9b7febc 100644 --- a/tests/unit-tests/__snapshots__/format.test.ts.snap +++ b/tests/unit-tests/__snapshots__/format.test.ts.snap @@ -570,6 +570,21 @@ export default class PooComponent extends Component { " `; +exports[`format > config > default > it formats ../cases/gts/issue-374.gts 1`] = ` +"import pageTitle from "ember-page-title/helpers/page-title"; + + satisfies unknown; +" +`; + exports[`format > config > default > it formats ../cases/gts/js-only.gts 1`] = ` "const num: number = 1; " diff --git a/tests/unit-tests/config/__snapshots__/semi-false.test.ts.snap b/tests/unit-tests/config/__snapshots__/semi-false.test.ts.snap index 0fc42c7..a1c12ee 100644 --- a/tests/unit-tests/config/__snapshots__/semi-false.test.ts.snap +++ b/tests/unit-tests/config/__snapshots__/semi-false.test.ts.snap @@ -570,6 +570,21 @@ export default class PooComponent extends Component { " `; +exports[`config > semi: false > it formats ../cases/gts/issue-374.gts 1`] = ` +"import pageTitle from "ember-page-title/helpers/page-title" + +; satisfies unknown +" +`; + exports[`config > semi: false > it formats ../cases/gts/js-only.gts 1`] = ` "const num: number = 1 " diff --git a/tests/unit-tests/config/__snapshots__/template-export-default.test.ts.snap b/tests/unit-tests/config/__snapshots__/template-export-default.test.ts.snap index c10016e..6b2a29e 100644 --- a/tests/unit-tests/config/__snapshots__/template-export-default.test.ts.snap +++ b/tests/unit-tests/config/__snapshots__/template-export-default.test.ts.snap @@ -570,6 +570,21 @@ export default class PooComponent extends Component { " `; +exports[`config > templateExportDefault: true > it formats ../cases/gts/issue-374.gts 1`] = ` +"import pageTitle from "ember-page-title/helpers/page-title"; + + satisfies unknown; +" +`; + exports[`config > templateExportDefault: true > it formats ../cases/gts/js-only.gts 1`] = ` "const num: number = 1; "