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

fix xhr unmocked reflection #181

Conversation

ItamarGronich
Copy link
Contributor

Description

When making a request to an un-mocked path, we used to swallow errors and any other status code other than 200.
This PR attempts to make a nearly complete API reflection of the fake XHR to the real one.

This fixes #178

@netlify
Copy link

netlify bot commented Jul 20, 2023

Deploy Preview for storybook-addon-mock ready!

Name Link
🔨 Latest commit 72960cb
🔍 Latest deploy log https://app.netlify.com/sites/storybook-addon-mock/deploys/64b993cebd03540008faa6c3
😎 Deploy Preview https://deploy-preview-181--storybook-addon-mock.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ItamarGronich
Copy link
Contributor Author

@nutboltu How can we push this forward?

@nutboltu nutboltu self-requested a review July 25, 2023 08:51
@nutboltu
Copy link
Collaborator

@ItamarGronich, Thanks for your contribution. I'm currently stuck with some priority work. Is it okay if I look at it by this weekend?
Going forward, we would like to enable the feature in the latest version and would give it a try to backport it in the version ^2

Copy link
Collaborator

@nutboltu nutboltu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. awesome work @ItamarGronich

@nutboltu nutboltu merged commit dcc2c59 into linearlabs-workspace:master Jul 28, 2023
7 checks passed
@ItamarGronich ItamarGronich deleted the 178-fix-xhr-unmocked-reflection branch August 1, 2023 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XMLHttpRequest is not properly reflected when there's no mock matched
2 participants