Search results
1000+ packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
Mock `window.Date` when run unit test cases with jest. Make tests of `Date` easier.
A JavaScript mock Date object that can be used to change when "now" is.
Constructors and objects behave exactly like built-in Date; the TZ offset is configurable
Package overriding what the now ( new Date(), Date.now() ) is in JS. It allows to manually change current date with `moment.js` like syntax.
jest date mocks
A JavaScript library which mocks the Date object and lets you specify a local date/time/timezone in order to enable consistent testing of date/time-related code independently of your local system time settings.
Generate a random date.
minimal utility for painless mocking Date in node.js and Proxy enabled browsers
generate mock data (random string, number, date, ipv4, etc.)
A JavaScript library to mock the local timezone.
Spoofing dates for browser & node
In-memory file-system with Node's fs API.
Fake the system time (Date, hrtime) in your tests, without freezing it (unlike in many other libraries). Freeze only when you need.
A response-like object for mocking a Node.js HTTP response stream
A minimal fork of nanospy, with more features
JavaScript test spies, stubs and mocks.
an identity object using ES6 proxies
Fake XHR and server
Low-level HTTP/HTTPS/XHR/fetch request interception library.
Seamless REST/GraphQL API mocking library for browser and Node.js.