Skip to content

Commit 656f2cd

Browse files
committed
Fix some logic, re-organize tests
1 parent 8bdd546 commit 656f2cd

2 files changed

Lines changed: 236 additions & 290 deletions

File tree

packages/@ember/engine/lib/strict-resolver.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@ export class StrictResolver implements Resolver {
115115
// Supports the nested colocation pattern where `component:my-widget`
116116
// resolves to `./components/my-widget/index.{js,ts,gjs,gts}`. The index
117117
// file is typically the component class, and it's commonly paired with a
118-
// sibling `template.hbs` inside the same folder.
118+
// sibling `index.hbs` inside the same folder.
119119
#nestedColocationLookup(type: string, name: string): Result {
120+
if (type !== 'component') return undefined;
121+
120122
let dir = this.#plural(type);
121123
let target = `${dir}/${name}/index`;
122124
let module = this.#modules.get(target);

0 commit comments

Comments
 (0)