Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ export default function emberLooseEnvironment(
templatePath.replace(REGEXES.POD_TEMPLATE, '/controller.ts'),
templatePath.replace(REGEXES.POD_TEMPLATE, '/route.ts')
);
} else if (templatePath.includes('/templates/components/')) {
// Classic component
candidates.push(colocatedTsScriptPath.replace('/templates/components/', '/components/'));
} else if (templatePath.includes('/templates/')) {
// Classic controller/route
candidates.push(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,6 @@ describe('Environments: Ember Loose', () => {
'/route.js',
]);

// Classic component
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep a parts of this test or drop it all together 🤔

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should drop everything related

expect(env?.getPossibleScriptPaths('/templates/components/hello.hbs')).toEqual([
'/templates/components/hello.ts',
'/templates/components/hello.js',
'/components/hello.ts',
'/components/hello.js',
]);

// Classic controller/route
expect(env?.getPossibleScriptPaths('/templates/hello.hbs')).toEqual([
'/templates/hello.ts',
Expand Down
2 changes: 0 additions & 2 deletions test-packages/ts-ember-app/app/components/foo.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

<Baz />

<Qux />

<this.MaybeComponent @arg="hi" />

{{! @glint-expect-error: missing required arg }}
Expand Down
12 changes: 0 additions & 12 deletions test-packages/ts-ember-app/app/components/qux.ts

This file was deleted.

4 changes: 0 additions & 4 deletions test-packages/ts-ember-app/app/templates/components/qux.hbs

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions test-packages/ts-ember-preview-types/app/components/foo.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

<Baz />

<Qux />

<this.MaybeComponent @arg="hi" />

{{! @glint-expect-error: missing required arg }}
Expand Down
11 changes: 0 additions & 11 deletions test-packages/ts-ember-preview-types/app/components/qux.ts

This file was deleted.

This file was deleted.