Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
X

xhr-mock

> 编程语言
Open source

Utility for mocking XMLHttpRequest.

198 stars0 likes0 views
WebsiteGitHub

About

Utility for mocking XMLHttpRequest.

xhr-mock

This repo is a mono-repo managed by lernajs.

Documentation

The documentation for the main NPM package can be found here.

Development

Install the dependencies:

bash
yarn
yarn run bootstrap

The NPM package

Build and test the package:

bash
cd packages/xhr-mock
yarn run build # transpile the sources
yarn run test  # run the unit tests

The integration tests

Test the package against a few well known XHR libraries:

bash
# NOTE: you need to build the main package first
cd packages/xhr-mock-tests
yarn run test  # run the integration tests

Contributing

Contributors are very welcome! Please raise an issue or PR on Github.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptjavascriptmockmock-responsesxhr

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言