-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add hasSingleImplementation, assertHasSingleImplementation (highlander) #156
Conversation
Not sure about the lint error, they are passing locally. |
Ran |
I cannot think about a case I need |
@stefanpenner thx, agree with your reviews.
|
6fc74e5
to
06f06ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new direction looks good overall
e1bc141
to
91e9d6d
Compare
f93c038
to
cdd3a85
Compare
75f5d04
to
bb046cf
Compare
00df6fe
to
711d3a3
Compare
This checker is specific to asserting and checking scenarios not against a single level, but rather project wide. Functionality: * `VersionChecker.forProject(project).{hasSingleImplementation,assertSingleImplementation}('addon-name'); // => true|false` * `VersionChecker.forProject(project).filterAddonByName('addon-name'); // => addon[]` * `VersionChecker.forProject(project).allAddons(); // iterator across all addons (dfs)
711d3a3
to
454cb71
Compare
I have a use case where the addon has build registry so that it needs to be listed as
dependencies
in other addons that uses it, but it brings in additional assets.ember-cli does the "firstWriteWins" strategy, but I need to assert there's no duplication in node_modules that surprises the final build.
Comparing to emberjs/ember-test-waiters#86, this checker does not mutate anything in the hierarchy but rather throws a silent error to force app fixes the resolution.