npm 包搜索

搜索 npm 上的 JavaScript 依赖包

搜索 "mock" 的结果(共 150 个)
request-capture-har

Wrapper for request module that saves all traffic as a HAR file, useful for auto mocking a client

MIT
MIT
sinon-chai

Extends Chai with assertions for the Sinon.JS mocking framework.

(BSD-2-Clause OR WTFPL)
@graphql-tools/mock

A set of utils for faster development of GraphQL tools

MIT
deferred-leveldown

A mock abstract-leveldown implementation that queues operations while a real abstract-leveldown instance is being opened

MIT
mock-res

Mocks node.js http.ServerResponse. See also `mock-req`.

MIT
mock-req

Mocks node.js `http.IncomingMessage` (a request). See also `mock-res`.

MIT
mock-stdin

Mock STDIN file descriptor in Node.js

MIT
require-inject

A simple mock injector compatible needing no instrumentation in the libraries being tested

ISC
mockery

Simplifying the use of mocks with Node.js

nock

HTTP server mocking and expectations library for Node.js

MIT
mm

mock mate, mock http request, fs access and so on.

MIT
node-mock-http

<!-- automd:badges color=yellow -->

MIT
msw

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

MIT
spooks

Easily create unit test spies and mock objects.

MIT
mocks

Set of mock modules for easy testing (fs, http)

timezone-mock

A JavaScript library to mock the local timezone.

MIT
simple-mock

Super simple stubs and spies with 1-step sandbox restore

MIT
fetch-mock

Mock http requests made using fetch

MIT
mock-property

Given an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.

MIT
moquire

because mocking `require`d modules for unit tests should be easy

MIT
mock-fs

A configurable mock file system. You know, for testing.

MIT
std-mocks

Mock node stdout and stderr without pain.

MIT
hock

A mocking server for HTTP requests

MIT
mock-http-response

A mock HTTP response object for testing and profit

mockdate

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

MIT
mock-spawn

A mock for child_process.spawn

BSD
mock-git

Mock any git command

MIT