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

Add ref and unref to stdin mock #23

Merged
merged 1 commit into from
Sep 12, 2023
Merged

Add ref and unref to stdin mock #23

merged 1 commit into from
Sep 12, 2023

Conversation

threepointone
Copy link
Contributor

Testing components which use useInput fail, because the mock for Stdin doesn't have .ref and .unref, which are now used (because of vadimdemedes/ink#616 and vadimdemedes/ink#622) This PR adds these methods to the mocks.

threepointone added a commit to partykit/partykit that referenced this pull request Sep 10, 2023
This brings back packaging of dependencies for partykit (and introduces it for create-partykit). We had previously disabled it for deps because of esm/cjs nonsense, but we've now figured out how to make them play decently together.

I had to fork ink-testing-library because of vadimdemedes/ink-testing-library#23, I'll remove it once that PR is merged.

This also updates ink to 4.4.1, which fixes our previous issue where it was exiting early.
threepointone added a commit to partykit/partykit that referenced this pull request Sep 10, 2023
This brings back packaging of dependencies for partykit (and introduces it for create-partykit). We had previously disabled it for deps because of esm/cjs nonsense, but we've now figured out how to make them play decently together.

I had to fork ink-testing-library because of vadimdemedes/ink-testing-library#23, I'll remove it once that PR is merged.

This also updates ink to 4.4.1, which fixes our previous issue where it was exiting early.
threepointone added a commit to partykit/partykit that referenced this pull request Sep 10, 2023
This brings back packaging of dependencies for partykit (and introduces it for create-partykit). We had previously disabled it for deps because of esm/cjs nonsense, but we've now figured out how to make them play decently together.

I had to fork ink-testing-library because of vadimdemedes/ink-testing-library#23, I'll remove it once that PR is merged.

This also updates ink to 4.4.1, which fixes our previous issue where it was exiting early.
threepointone added a commit to partykit/partykit that referenced this pull request Sep 10, 2023
This brings back packaging of dependencies for partykit (and introduces it for create-partykit). We had previously disabled it for deps because of esm/cjs nonsense, but we've now figured out how to make them play decently together.

I had to fork ink-testing-library because of vadimdemedes/ink-testing-library#23, I'll remove it once that PR is merged.

This also updates ink to 4.4.1, which fixes our previous issue where it was exiting early.
threepointone added a commit to partykit/partykit that referenced this pull request Sep 10, 2023
This brings back packaging of dependencies for partykit (and introduces it for create-partykit). We had previously disabled it for deps because of esm/cjs nonsense, but we've now figured out how to make them play decently together.

I had to fork ink-testing-library because of vadimdemedes/ink-testing-library#23, I'll remove it once that PR is merged.

This also updates ink to 4.4.1, which fixes our previous issue where it was exiting early.
Testing components which use useInput fail, because the mock for Stdin doesn't have `.ref` and `.unref`, which are now used (because of vadimdemedes/ink#616 and vadimdemedes/ink#622) This PR adds these methods to the mocks.
@vadimdemedes vadimdemedes changed the title add ref/unref to Stdin mock Add ref and unref to stdin mock Sep 12, 2023
@vadimdemedes
Copy link
Owner

Thank you!

@vadimdemedes vadimdemedes merged commit f44b077 into vadimdemedes:master Sep 12, 2023
0 of 3 checks passed
@ohana54
Copy link

ohana54 commented Oct 4, 2023

@vadimdemedes thanks for merging this, do you have an estimation when it will be released?

@milesj
Copy link

milesj commented Feb 10, 2024

Bump, can this be published? Have to use patches right now.

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.

None yet

5 participants