This repo is a mono-repo managed by lernajs.
The documentation for the main NPM package can be found here.
Install the dependencies:
yarn
yarn run bootstrapBuild and test the package:
cd packages/xhr-mock
yarn run build # transpile the sources
yarn run test # run the unit testsTest 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 testsContributors are very welcome! Please raise an issue or PR on Github.