Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Sep 14, 2024
1 parent 245a2ef commit 9390ae7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/scenarios/core-resolver-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ Scenarios.fromProject(() => new Project())
expectAudit
.module('./app.js')
.resolves('my-app/hello-world')
.to('./node_modules/my-addon/_app_/hello-world.js');
.to('./package.json::my-addon/_app_/hello-world.js/embroider_appjs_match');
});

test('app-js module in addon can still do relative imports that escape its package', async function () {
Expand All @@ -527,7 +527,7 @@ Scenarios.fromProject(() => new Project())
});

expectAudit
.module('./node_modules/my-addon/_app_/hello-world.js')
.module('./package.json::my-addon/_app_/hello-world.js/embroider_appjs_match')
.resolves('../../extra.js')
.to('./node_modules/extra.js');
});
Expand All @@ -547,7 +547,7 @@ Scenarios.fromProject(() => new Project())
expectAudit
.module('./app.js')
.resolves('my-app/templates/hello-world')
.to('./node_modules/my-addon/_app_/templates/hello-world.hbs');
.to('./package.json::my-addon/_app_/templates/hello-world.hbs/embroider_appjs_match');
});

test(`relative import in addon's app tree resolves to app`, async function () {
Expand All @@ -564,7 +564,7 @@ Scenarios.fromProject(() => new Project())
});

expectAudit
.module('./node_modules/my-addon/_app_/hello-world.js')
.module('./package.json::my-addon/_app_/hello-world.js/embroider_appjs_match')
.resolves('./secondary')
.to('./secondary.js');
});
Expand All @@ -584,7 +584,7 @@ Scenarios.fromProject(() => new Project())
});

expectAudit
.module('./node_modules/my-addon/_app_/hello-world.js')
.module('./package.json::my-addon/_app_/hello-world.js/embroider_appjs_match')
.resolves('./secondary')
.to('./secondary.js');
});
Expand All @@ -602,7 +602,7 @@ Scenarios.fromProject(() => new Project())
});

expectAudit
.module('./node_modules/my-addon/_app_/hello-world.js')
.module('./package.json::my-addon/_app_/hello-world.js/embroider_appjs_match')
.resolves('the-apps-dep')
.to('./node_modules/the-apps-dep/index.js');
});
Expand All @@ -621,7 +621,7 @@ Scenarios.fromProject(() => new Project())
});

expectAudit
.module('./node_modules/my-addon/_app_/hello-world.js')
.module('./package.json::my-addon/_app_/hello-world.js/embroider_appjs_match')
.resolves('my-app/secondary')
.to('./secondary.js');
});
Expand Down

0 comments on commit 9390ae7

Please sign in to comment.