Closed oscarbc96 closed 2 days ago
You can reference this page to pass tests. Please feel free to ask if you need assistance.
Thanks for your contribution. LGTM. One comment: I want as few test files as possible so we can easily maintain tests in the future. Can you please provide a minimum file structure that meets the case you want to test?
Thanks for your feedback! The tests are already consolidated into a minimal structure. The happy path test requires only two dependencies: ms
, which has no additional dependencies, and @babel/parser
, which has several indirect dependencies. This allows us to comprehensively test that everything is working correctly.
Due to the nature of these dependencies, it might appear that we have several test data files. However, to keep things simple, everything except the package.json
file has been removed. This ensures that we maintain the necessary coverage while adhering to the minimal file structure.
I still feel like @babel/parser
has too many dependencies. We don't need to use an actual package for unit tests. You can add it to integration tests.
You're right. After giving it a second thought, I removed @babel/parser
since testing the detection of indirect dependencies should be handled by the pnpm parser. The pnpm parser already has tests for these dependencies.
@DmitriyLewen Could you also take a look?
Description
pnpm-lock.yaml files do not contain dependency license information. This PR parses */node_modules//package.json files alongside pnpm-lock.json and identify licenses.
Related Issues
Checklist