faux-jax icon indicating copy to clipboard operation
faux-jax copied to clipboard

NO MORE MAINTAINED: Intercept and respond to requests in the browser (AJAX) and Node.js (http(s) module)

Results 7 faux-jax issues
Sort by recently updated
recently updated
newest added

I get some breaking tests since faux-jax 5.0.6 (they don't happen with 5.0.1 to 5.0.5). > "after all" hook: Error: timeout of 2000ms exceeded. Ensure the done() callback is being...

This is an attempt at a `bypass` method which follows on https://github.com/algolia/faux-jax/issues/12 It adds it to node and xhr ( i couldn't manually test IE, so I left XDomainRequest). Working...

I am getting the error `faux-jax: received an unexpected request` It's confusing because the stack is not pointing to any of my code, and as far as I can tell...

question

I only want to intercept requests that match a certain pattern. If the requests don't match the pattern it would be nice to have an easy way to get the...

pr welcomed

When you set [xhr.responseType = 'arraybuffer'](http://www.html5rocks.com/en/tutorials/file/xhr2/), `xhr.response` should be an `ArrayBuffer`, not a string. It looks like faux-jax does not emulate this behavior (`xhr.response` remains a string when I set...

pr welcomed

Thanks for this handy tool ! Some libs cache `XMLHttpRequest`, ex : https://github.com/iriscouch/browser-request/blob/master/index.js#L15 In this case we cannot use the faux-jax `.install()` and `.restore` to setup/teardown A workaround is to...

pr welcomed

The [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) is already available in Chrome and Firefox. It would be nice to intercept it as well.

pr welcomed