Skip to content

test: add test for bare command all-contributors - #643

Merged
michaelfaith merged 1 commit into
all-contributors:mainfrom
lwasser:bare-command
Nov 12, 2026
Merged

michaelfaith merged 1 commit into
all-contributors:mainfrom
lwasser:bare-command

Conversation

@lwasser

@lwasser lwasser commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

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
  • Tests
  • Ready to be merged
  • Added myself to contributors table

@lwasser
lwasser marked this pull request as ready for review November 12, 2026 02:08
@lwasser
lwasser requested a review from a team November 12, 2026 02:09
@lwasser

lwasser commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

Ok this is the last little baby test. it just tests whether when you run all-contributors standalone does the user get an actual prompt and checks the value.

@michaelfaith michaelfaith left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me 👍

@michaelfaith
michaelfaith merged commit 6db0431 into all-contributors:main Nov 12, 2026
7 checks passed
@github-actions

Copy link
Copy Markdown

@all-contributors please add lwasser for test.

🤖 Beep boop! This comment was added automatically by all-contributors-auto-action.
Not all contributions can be detected from Git & GitHub alone. Please comment any missing contribution types this bot missed.
...and of course, thank you for contributing! 💙

@allcontributors

Copy link
Copy Markdown
Contributor

@github-actions[bot]

We had trouble processing your request. Please try again later.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🧪 TESTS: Test update, ensure the bare all-contributors command shows a prompt (to support e2e test)

2 participants