GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — fix: cleaner user facing error handing and tests for config file points of failure by lwasser · Pull Request #620 · all-contributors/cli Conversation
|
|
This is ready for review! Here I focused on various errors a user may encounter running initial commands so it looks at things like malformed json, bad config, missing readme, etc etc. i also added some friendlier messaging around errors and checked those in our tests too. I think the next round of tests will be related to mocking. i haven't been tracking these with issues but I will start doing that now. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
This will need to be rebased, following the re-organization of ci jobs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
6052f68 to
644e737
Compare
|
@michaelfaith rebase is complete! thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
test: add await so error reach CLI error handler and throw proper returns chore: lint ci: add e2e to ci test: add test and cleaner message for when json file is missing test: cleanup unit test to check for UserError and match message
644e737 to
0a74580
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Good stuff! 👏
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
🤖 I have created a release *beep* *boop* --- ## [7.0.2](v7.0.1...v7.0.2) (2026-11-12) ### 🩹 Bug Fixes * cleaner user facing error handling and tests for config file points of failure ([#620](#620)) ([0022c2e](0022c2e)) * Readme error message should be user friendly not a quiet fail ([#617](#617)) ([9c378f9](9c378f9)) * run git commands without a shell ([#588](#588)) ([f9d3ee2](f9d3ee2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: a-c-slater[bot] <354703433+a-c-slater[bot]@users.noreply.github.com>
closes #642 this builds on #620 so i'll open as a draft and then when that merges, open this one. **What**: This pr makes a small change to run-cli.js to allow us to capture the output of `all-contributors` which displays a prompt that the user needs to respond to (so it intentionally hangs) . To make sure the user sees a prompt we force a "break" when text output is rendered on the screen and make sure the text that we expect is there. **Why**: Cause tests are good. 🙃 **How**: - [ ] Documentation - [x] Tests - [x] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? --> - [ ] Added myself to contributors table <!-- this is optional, see the contributing guidelines for instructions --> <!-- feel free to add additional comments -->
|
@all-contributors please add lwasser for code.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.