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

tests(utils): add packageUtils tests #1375

Merged
merged 7 commits into from
Mar 25, 2020

Conversation

knagaitsev
Copy link
Contributor

What kind of change does this PR introduce?
tests/fix

Did you add tests for your changes?
Yes

If relevant, did you update the documentation?
N/A

Summary
I added tests for the packageUtils file.

I also made some fixes and changes to the getPackageManager function. If a yarn.lock is not present but a package-lock.json is present, I think we should assume the user wants to use npm.

Does this PR introduce a breaking change?
Yes, as noted above in the getPackageManager function

Other information

@webpack-bot
Copy link

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

Copy link
Member

@anshumanv anshumanv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are some comprehensive tests, well done!

@alexander-akait alexander-akait merged commit ce8ec5a into webpack:next Mar 25, 2020
@alexander-akait
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

6 participants