-
Notifications
You must be signed in to change notification settings - Fork 256
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
Not a bug or a feature: Possible to consolidate all dependencies of a source within the dependencies list? #503
Comments
hi @nickhodaly - this is indeed not available 'out of the box'. Can you tell me what you're going to use it for? (I'm just curious) |
@sverweij Of course! Thanks for responding so quickly! I have a use case that I would imagine is pretty uncommon. I am working on something that will relate browser based UI tests to the code under test and the code under tests' dependencies. This is a solved problem when it comes to unit testing as the code under test in unit tests is typically already a dependency of the unit test itself. For example the jest test runner supports this via Some examples:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
(reopened as the stale issue bot inadvertently closed it during my holidays) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I am using the dependency-cruiser API to cruise a list of files and working with the JSON output. Is it currently possible to consolidate all of a source files dependencies into the dependency list recursively?
Summary
From what I can tell, the list of dependencies contains only the top level dependencies of the source and if you want to see the dependencies of those top level dependencies you need to find the JSON object whose source matches the top level dependency, and look at it's dependencies, so on and so forth.
Context
I can build some logic to trace these dependencies down recursively and consolidate them, just wondering if it's something available out of the box.
The text was updated successfully, but these errors were encountered: