mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[GH-ISSUE #276] testRender: user input leaks through #72
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#72
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @veracioux on GitHub (Nov 6, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/276
When I run tests in a terminal and then press some keys, they leak into the test.
The tests were set up using plain
await testRender(() => <App/>)For example, I ran a few tests and kept holding the
akey. This is what happened:@kommander commented on GitHub (Nov 7, 2025):
The testing setup currently isn't actually mocking process.stdin, the input mocks for key/mouse are writing to the actual process.stdin