Skip to content

Add time-provider to Testing Frameworks - #1249

Closed
jaenyf wants to merge 1 commit into
sorrycc:masterfrom
jaenyf:patch-1
Closed

jaenyf wants to merge 1 commit into
sorrycc:masterfrom
jaenyf:patch-1

Conversation

@jaenyf

@jaenyf jaenyf commented Nov 27, 2026

Copy link
Copy Markdown

Adds time-provider to Testing Frameworks > Assertion, next to the other mocking tools.

Code takes time (Date, setTimeout, performance.now, requestAnimationFrame...) from an injected clock instead of globals, so tests drive time explicitly without patching anything. Published on npm and JSR, with plugins for Day.js, Luxon, Moment and Temporal. 100% test coverage. Docs: https://jaenyf.github.io/time-provider/

Checklist:

  • I've read and understood Contributing Guidelines.
  • I've added the new resource at the end of its section.
  • This resource is out there for a while, and actively maintained.
  • This resource is popular enough and has at least a few hundred stars on GitHub.

Adds [time-provider](https://github.com/jaenyf/time-provider) to Testing Frameworks > Assertion, next to the other mocking tools.

Code takes time (Date, setTimeout, performance.now, requestAnimationFrame...) from an injected clock instead of globals, so tests drive time explicitly without patching anything. Published on npm and JSR, with plugins for Day.js, Luxon, Moment and Temporal. 100% test coverage. Docs: https://jaenyf.github.io/time-provider/
@jaenyf jaenyf closed this Nov 27, 2026
@jaenyf

jaenyf commented Nov 27, 2026

Copy link
Copy Markdown
Author

Closing for now, as the project doesn't meet the "few hundred stars" requirement yet. I'll come back once it does. Thanks!

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.

1 participant