Skip to content

tests(utils): add packageUtils tests#1375

Merged
alexander-akait merged 7 commits intowebpack:nextfrom
knagaitsev:tests/package-utils
Mar 25, 2020
Merged

tests(utils): add packageUtils tests#1375
alexander-akait merged 7 commits intowebpack:nextfrom
knagaitsev:tests/package-utils

Conversation

@knagaitsev
Copy link
Copy Markdown
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
Copy Markdown

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

6 participants