Search results

1000+ packages found

Mock `window.Date` when run unit test cases with jest. Make tests of `Date` easier.

published version 1.0.10, a year ago19 dependents licensed under $MIT
2,017,272

A JavaScript mock Date object that can be used to change when "now" is.

published version 3.0.5, 4 years ago189 dependents licensed under $MIT
6,674,452

Constructors and objects behave exactly like built-in Date; the TZ offset is configurable

published version 3.0.2, 8 years ago1 dependents licensed under $Apache-2.0
141,061

Package overriding what the now ( new Date(), Date.now() ) is in JS. It allows to manually change current date with `moment.js` like syntax.

published version 1.3.0, 4 years ago0 dependents licensed under $MIT
461

jest date mocks

published version 1.0.1, 5 years ago0 dependents licensed under $ISC
360

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.

published version 1.1.4, 7 years ago0 dependents licensed under $MIT
1,059

Generate a random date.

published version 1.0.1, 9 years ago6 dependents licensed under $MIT
491

minimal utility for painless mocking Date in node.js and Proxy enabled browsers

published version 0.9.1, a year ago0 dependents licensed under $MIT
153

generate mock data (random string, number, date, ipv4, etc.)

published version 1.5.5, 7 years ago2 dependents licensed under $MIT
625

A JavaScript library to mock the local timezone.

published version 1.3.6, 2 years ago17 dependents licensed under $MIT
1,834,099

Spoofing dates for browser & node

published version 1.0.4, 6 months ago0 dependents licensed under $ISC
498

In-memory file-system with Node's fs API.

published version 4.17.0, 4 months ago748 dependents licensed under $Apache-2.0
84,409,486

Fake the system time (Date, hrtime) in your tests, without freezing it (unlike in many other libraries). Freeze only when you need.

published version 1.0.3, 5 years ago0 dependents licensed under $MIT
187

A response-like object for mocking a Node.js HTTP response stream

published version 3.0.0, 3 years ago526 dependents licensed under $MIT
76,525,170

A minimal fork of nanospy, with more features

published version 4.0.3, 10 days ago53 dependents licensed under $MIT
49,405,663

JavaScript test spies, stubs and mocks.

published version 20.0.0, a month ago4164 dependents licensed under $BSD-3-Clause
30,107,885

an identity object using ES6 proxies

published version 3.0.0, 9 years ago3994 dependents licensed under $MIT
28,248,039

Fake XHR and server

published version 6.1.1, 7 months ago43 dependents licensed under $BSD-3-Clause
24,323,442

Low-level HTTP/HTTPS/XHR/fetch request interception library.

published version 0.38.6, 4 days ago73 dependents licensed under $MIT
22,685,279

Seamless REST/GraphQL API mocking library for browser and Node.js.

published version 2.7.5, 9 days ago397 dependents licensed under $MIT
21,546,419