Skip to content

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

Merged
ematipico merged 3 commits intowebpack:nextfrom
jamesgeorge007:hotfix/handle-promise-rejection
Mar 9, 2020
Merged

fix(webpack-cli): handle promise rejection with package installation#1284
ematipico merged 3 commits intowebpack:nextfrom
jamesgeorge007:hotfix/handle-promise-rejection

Conversation

@jamesgeorge007
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

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

@jamesgeorge007 jamesgeorge007 requested a review from ematipico March 3, 2020 14:27
@ematipico
Copy link
Copy Markdown
Contributor

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

@webpack-bot
Copy link
Copy Markdown

@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
@jamesgeorge007 jamesgeorge007 force-pushed the hotfix/handle-promise-rejection branch from fb1adbe to d7f11a0 Compare March 7, 2020 08:46
@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.

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