such-mock-browser
v0.0.3
Published
Intercept the request made by 'XMLHttpRequest' and 'fetch' API in the browser, and response a mock data based on 'suchjs' library.
Downloads
7
Readme
such-mock-browser
Extend the ability for suchjs
with Such.mock
in browser, intercept the reqeust made by XMLHttpRequest
or fetch
API, response a mock data instead.
How to use
See the document: Suchjs mock
Dependencies
Interceptor: https://github.com/mswjs/interceptors
Pathname match: https://github.com/mswjs/node-match-path