0.0.3 • Published 2 years ago
such-mock-browser v0.0.3
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