Skip to content

feat(nsgotest): add clock and wall-time options - #645

Draft
houko wants to merge 1 commit into
mainfrom
feat/nsgotest-clock-options
Draft

houko wants to merge 1 commit into
mainfrom
feat/nsgotest-clock-options

Conversation

@houko

@houko houko commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add nsgotest.Clock for supplying a manual clock
  • add nsgotest.WallTime for setting the first render's wall time
  • make tsxtest use the public wall-time option
  • document the options and add timer and first-frame regressions

Closes #286

Verification

  • go tool nsgo check
  • go tool nsgo test
  • go tool nsgo test ./nsgotest -run 'Test(WallTimeOptionSetsTheFirstFrame|ClockOptionRunsAppTimers)$'

@github-actions github-actions Bot added size/S documentation Improvements or additions to documentation tsx enhancement New feature or request labels Nov 18, 2026

This branch has not been deployed

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

Labels

documentation Improvements or additions to documentation enhancement New feature or request size/S tsx

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nsgotest: no Clock or WallTime option, so a Go test can set the date its app first renders with only through an Option written against App's fields

1 participant