
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
@types/sinonjs__fake-timers
Advanced tools
TypeScript definitions for @sinonjs/fake-timers
npm install --save @types/sinonjs__fake-timers
This package contains type definitions for @sinonjs/fake-timers (https://github.com/sinonjs/fake-timers).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sinonjs__fake-timers.
These definitions were written by Wim Looman, Rogier Schouten, Yishai Zehavi, Remco Haszing, and Jaden Simon.
Jest is a JavaScript testing framework that comes with built-in utilities for mocking timers. It provides similar functionalities to @types/sinonjs__fake-timers, such as jest.useFakeTimers() and jest.advanceTimersByTime(). Jest is more comprehensive as it includes a full testing framework along with timer mocks.
Lolex is a standalone library for creating fake timers, similar to sinonjs/fake-timers. It allows you to control the flow of time in your tests. Lolex is often used as a dependency in other testing libraries, including Sinon itself.
FAQs
TypeScript definitions for @sinonjs/fake-timers
The npm package @types/sinonjs__fake-timers receives a total of 10,142,260 weekly downloads. As such, @types/sinonjs__fake-timers popularity was classified as popular.
We found that @types/sinonjs__fake-timers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.