From a750c740f85b62fc43485754f9060fafd5642357 Mon Sep 17 00:00:00 2001 From: jaenyf <95911656+jaenyf@users.noreply.github.com> Date: Fri, 27 Nov 2026 23:41:37 +0100 Subject: [PATCH] Add time-provider to Testing Frameworks 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/ --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b764c538..74da9376 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,7 @@ A collection of awesome browser-side [JavaScript](https://developer.mozilla.org/ * [Supertest](https://github.com/visionmedia/supertest) - A popular HTTP assertion library for testing REST APIs, often used with other testing frameworks like Mocha or Jest * [Pocket Mocker](https://github.com/tianchangNorth/pocket-mocker) - In-browser visual network mocking tool, supports fetch/XHR interception. * [interface-forge](https://github.com/Goldziher/interface-forge) - Graceful, type-safe mock-data generation for TypeScript, with factories and Faker integration. +* [Time-Provider](https://github.com/jaenyf/time-provider) - Injectable clock and timers with deterministic test runtimes, an alternative to global fake timers. ### Coverage