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

fix(webpack-cli): handle promise rejection with package installation #1284

Merged

Conversation

jamesgeorge007
Copy link
Member

What kind of change does this PR introduce?
bugfix

Did you add tests for your changes?
Nope

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

Summary
closes #1283

Does this PR introduce a breaking change?
Nope

Other information
N/A

@jamesgeorge007 jamesgeorge007 requested a review from a team as a code owner March 3, 2020 06:33
@jamesgeorge007 jamesgeorge007 force-pushed the hotfix/handle-promise-rejection branch from adeba96 to ba059b1 Compare March 3, 2020 06:40
@ematipico ematipico changed the title fix: handle promise rejection with package installation fix(webpack-cli): handle promise rejection with package installation Mar 3, 2020
Copy link
Contributor

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Could you create a test?

@jamesgeorge007
Copy link
Member Author

@ematipico it requires to mock the keyboard interrupts, and is gonna consume some sort of third party libraries for the purpose.

@ematipico
Copy link
Contributor

With jest you can mock libraries or modules. I believe it's doable

@webpack-bot
Copy link

@jamesgeorge007 Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@ematipico Please review the new changes.

@jamesgeorge007 jamesgeorge007 force-pushed the hotfix/handle-promise-rejection branch 3 times, most recently from 90fc912 to fb1adbe Compare March 7, 2020 06:21
@webpack-bot
Copy link

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

ematipico
ematipico previously approved these changes Mar 7, 2020
@ematipico ematipico merged commit eb1112e into webpack:next Mar 9, 2020
@jamesgeorge007 jamesgeorge007 deleted the hotfix/handle-promise-rejection branch March 9, 2020 09:31
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.

Handle the promise rejection if the user interrupts in between package installation prompt
4 participants