Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the fetch API #137

Open
jeroencornelissen opened this issue Oct 4, 2017 · 2 comments
Open

Support the fetch API #137

jeroencornelissen opened this issue Oct 4, 2017 · 2 comments

Comments

@jeroencornelissen
Copy link

can-fixture currently only intercepts XHR requests.
It would be nice if it also supports the fetch API.

@bmomberger-bitovi
Copy link
Contributor

Something like https://github.com/werk85/fetch-intercept might help us implement this easily.

@matthewp
Copy link
Contributor

Looking at the code it appears that that library doesn't prevent the request from occurring. I think it's for modifying requests/responses, as a sort of aspect-oriented programming mechanism. But the fetch still occurs. https://github.com/werk85/fetch-intercept/blob/2786b54e83afa6b5bc1cf6ba2eb31fb5b32d7526/src/attach.js#L20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants