mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[PR #627] [MERGED] testing: make TestRecorder timestamps deterministic #668
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#668
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?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/627
Author: @simonklee
Created: 2/4/2026
Status: ✅ Merged
Merged: 2/4/2026
Merged by: @kommander
Base:
main← Head:flaky-test-fix📝 Commits (1)
6f5fc4btesting: make TestRecorder timestamps deterministic📊 Changes
2 files changed (+10 additions, -7 deletions)
View changed files
📝
packages/core/src/testing/test-recorder.test.ts(+5 -5)📝
packages/core/src/testing/test-recorder.ts(+5 -2)📄 Description
Allow an injected clock to drive recording timestamps so tests avoid wall-clock races.
Test now drives time explicitly (advance 10ms between renders), so the timestamps are deterministic.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.