From 2bc5010a44b824b5d0efd38e8f17a3b2c5fa8800 Mon Sep 17 00:00:00 2001 From: Sergey Astapov Date: Fri, 29 Mar 2024 18:42:32 +0000 Subject: [PATCH] Update fixture and snpashots --- .../default/my-addon/src/components/template-import.gjs | 2 +- .../fixtures/default/my-addon/src/components/template-only.js | 3 +++ .../typescript/my-addon/src/components/template-import.gts | 2 +- tests/rollup-build-tests/explicit-imports.test.ts | 4 ++-- tests/smoke-tests/--typescript.test.ts | 2 -- 5 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 tests/fixtures/default/my-addon/src/components/template-only.js diff --git a/tests/fixtures/default/my-addon/src/components/template-import.gjs b/tests/fixtures/default/my-addon/src/components/template-import.gjs index 063a3e6e..04f03636 100644 --- a/tests/fixtures/default/my-addon/src/components/template-import.gjs +++ b/tests/fixtures/default/my-addon/src/components/template-import.gjs @@ -1,5 +1,5 @@ import Component from '@glimmer/component'; -import TemplateOnly from './template-only'; +import TemplateOnly from './template-only.js'; import { on } from '@ember/modifier'; export default class TemplateImport extends Component { diff --git a/tests/fixtures/default/my-addon/src/components/template-only.js b/tests/fixtures/default/my-addon/src/components/template-only.js new file mode 100644 index 00000000..fa850535 --- /dev/null +++ b/tests/fixtures/default/my-addon/src/components/template-only.js @@ -0,0 +1,3 @@ +import templateOnly from '@ember/component/template-only'; + +export default templateOnly(); diff --git a/tests/fixtures/typescript/my-addon/src/components/template-import.gts b/tests/fixtures/typescript/my-addon/src/components/template-import.gts index 7906ac8e..443f08ec 100644 --- a/tests/fixtures/typescript/my-addon/src/components/template-import.gts +++ b/tests/fixtures/typescript/my-addon/src/components/template-import.gts @@ -1,5 +1,5 @@ import Component from '@glimmer/component'; -import TemplateOnly from './template-only'; +import TemplateOnly from './template-only.ts'; import AnotherGts from './another-gts.gts'; // N.B. relative imports inside a v2 addon should have explicit file extensions (this is consistent with how node treats ES modules) import { on } from '@ember/modifier'; import { action } from '@ember/object'; diff --git a/tests/rollup-build-tests/explicit-imports.test.ts b/tests/rollup-build-tests/explicit-imports.test.ts index 71164d47..a6c8e0ad 100644 --- a/tests/rollup-build-tests/explicit-imports.test.ts +++ b/tests/rollup-build-tests/explicit-imports.test.ts @@ -94,8 +94,8 @@ describe(`rollup-build | explicit-imports`, () => { 'js-component.d.ts', 'js-component.d.ts.map', 'nested', - 'template-only.d.ts', - 'template-only.d.ts.map', + "template-only.d.ts", + "template-only.d.ts.map", 'ts-component.d.ts', 'ts-component.d.ts.map', ]); diff --git a/tests/smoke-tests/--typescript.test.ts b/tests/smoke-tests/--typescript.test.ts index b49009d2..a808189a 100644 --- a/tests/smoke-tests/--typescript.test.ts +++ b/tests/smoke-tests/--typescript.test.ts @@ -85,8 +85,6 @@ for (let packageManager of SUPPORTED_PACKAGE_MANAGERS) { "index.js", "index.js.map", "services", - "template-only-B8yJqW69.js", - "template-only-B8yJqW69.js.map", "template-registry.js", "template-registry.js.map", ]