timezone-mock lets you simulate different timezones in your JavaScript tests without altering the system timezone. It effectively isolates your unit tests by mocking Date and related functions, preventing timezone-related inconsistencies and making your tests more predictable and reliable. It's invaluable for projects handling date and time operations across multiple timezones, ensuring your code behaves as expected regardless of the user's location or server configuration. Simple to integrate and use.
The timezone-mock npm package had sporadic releases. Initial development occurred in 2015 and 2017. Version 1.x saw frequent updates between 2018-2020. Releases slowed significantly after 2020, with the last version, 1.3.6, published in December 2022. There have been no releases since January 2023.
Timezone-mock's npm package downloads show a generally increasing trend from March 2024 to July 2025, peaking at 2.26 million. August 2025 downloads are lower at 1.78 million, likely reflecting incomplete monthly data as today is August 31st. Overall, there's strong and fluctuating interest in the package.