xm

xhr-mock

Utility for mocking XMLHttpRequest.

Showing:

Popularity

Downloads/wk

118K

GitHub Stars

188

Maintenance

Last Commit

10mos ago

Contributors

21

Package

Dependencies

2

Size (min+gzip)

5.9KB

License

MIT

Type Definitions

Built-In

Tree-Shakeable

No?

Readme

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:

yarn
yarn run bootstrap

The NPM package

Build and test the package:

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:

# 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.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Tutorials

No tutorials found
Add a tutorial