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

test(core): add initial tests #195

Merged
merged 7 commits into from
Nov 22, 2024
Merged

test(core): add initial tests #195

merged 7 commits into from
Nov 22, 2024

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented Jun 4, 2024

Adds some tests for the core package and fixes a small bug found during writing them.

The bug is basically that we never unhide the cursor on process.exit conditions, meaning we leave it hidden in the terminal after our prompt has been cancelled.

cc @natemoo-re i was trying to get my head around how this codebase works etc so wrote these while i was in there. they're not as nice as some kind of e2e cli test i suppose, but still seem straight forward enough (and better than nothing)

Copy link

changeset-bot bot commented Jun 4, 2024

🦋 Changeset detected

Latest commit: fc3a263

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@clack/core Patch
@clack/prompts Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

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

Sorry I'm just getting to this! Absolutely lovely and very helpful, thanks for scaffolding these out! 🙌

43081j and others added 7 commits November 21, 2024 21:15
Adds some tests for the core package and fixes a small bug found during
writing them.

The bug is basically that we never unhide the cursor on `process.exit`
conditions, meaning we leave it hidden in the terminal after our prompt
has been cancelled.
@natemoo-re natemoo-re merged commit ec4ec09 into bombshell-dev:main Nov 22, 2024
2 checks passed
@43081j 43081j deleted the tests branch November 22, 2024 03:42
Mist3rBru added a commit to Mist3rBru/clack that referenced this pull request Nov 26, 2024
Mist3rBru added a commit to Mist3rBru/clack that referenced this pull request Nov 26, 2024
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.

2 participants