jameslnewell / Xhr Mock
Utility for mocking XMLHttpRequest.
Stars: ✭ 188
Programming Languages
javascript
184084 projects - #8 most used programming language
typescript
32286 projects
Projects that are alternatives of or similar to Xhr Mock
Interceptors
Low-level HTTP/HTTPS/XHR/fetch request interception library.
Stars: ✭ 100 (-46.81%)
Mutual labels: xhr, mock
Vue Cli Multi Page
基于vue-cli模板的多页面多路由项目,一个PC端页面入口,一个移动端页面入口,且有各自的路由, vue+webpack+vue-router+vuex+mock+axios
Stars: ✭ 145 (-22.87%)
Mutual labels: mock
Mockito
Most popular Mocking framework for unit tests written in Java
Stars: ✭ 12,453 (+6523.94%)
Mutual labels: mock
Graphql Faker
🎲 Mock or extend your GraphQL API with faked data. No coding required.
Stars: ✭ 2,361 (+1155.85%)
Mutual labels: mock
Httpretty
Intercept HTTP requests at the Python socket level. Fakes the whole socket module
Stars: ✭ 1,930 (+926.6%)
Mutual labels: mock
Morphlingjs
A CLI to mock with meaningful data a REST API from a Swagger file
Stars: ✭ 148 (-21.28%)
Mutual labels: mock
Raml Server
run a mocked server JUST based on a RAML API's definition .. zero coding
Stars: ✭ 158 (-15.96%)
Mutual labels: mock
Smoke
💨 Simple yet powerful file-based mock server with recording abilities
Stars: ✭ 142 (-24.47%)
Mutual labels: mock
Mithril.js
A JavaScript Framework for Building Brilliant Applications
Stars: ✭ 13,062 (+6847.87%)
Mutual labels: xhr
Interceptor
A browser extension to mock AJAX requests at the browser level
Stars: ✭ 182 (-3.19%)
Mutual labels: 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:
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.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].