DEV Community

Discussion on: Using mocked APIs to increase developer productivity

Collapse
 
rattanakchea profile image
Rattanak Chea

What do you mean mock XMLHttpRequest? Can you provide some more context? Like using this library npmjs.com/package/mock-xmlhttprequest for example?

Thread Thread
 
asantos00 profile image
Alexandre

Yes, that would be one option. Either that or something like PretenderJS does (github.com/pretenderjs/pretender/b...)