Skip to content
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 test : for invalid package-lock.json file #4787

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

asimchoudhary
Copy link

fixes : #3932

Add test for invalid package-lock.json handling

Changes

  • Added empty package-lock-invalid.json file to test invalid npm package format
  • Added test_invalid_package_lock_json test method to verify scanner correctly handles invalid files
  • Scanner should return no products when given an invalid file

@asimchoudhary asimchoudhary changed the title Add test Add test : for invalid package-lock.json file Feb 8, 2025
@terriko
Copy link
Contributor

terriko commented Feb 10, 2025

I've kicked off the tests to run and I'll be back once they're passing. You're going to fail the gitlint one because of the commit message/title of the PR but I can fix that one during merge if it's the only one not passing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test: add invalid file test for package-lock.json files
2 participants