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", ]