项目作者: jameslnewell

项目描述 :
Utility for mocking XMLHttpRequest.
高级语言: TypeScript
项目地址: git://github.com/jameslnewell/xhr-mock.git
创建时间: 2014-12-24T02:51:16Z
项目社区:https://github.com/jameslnewell/xhr-mock

开源协议:

下载


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:

  1. yarn
  2. yarn run bootstrap

The NPM package

Build and test the package:

  1. cd packages/xhr-mock
  2. yarn run build # transpile the sources
  3. yarn run test # run the unit tests

The integration tests

Test the package against a few well known XHR libraries:

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

🎁 Contributing

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