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

feature 174 (mockFetch): add support for aborting requests #176

Merged
merged 2 commits into from
Jul 28, 2023

Conversation

plumpNation
Copy link

@plumpNation plumpNation commented Jul 7, 2023

Apologies for the mess when creating this review.

I have tried to stay as close to native implementation as I am aware of. I was unable to throw a DOMException because the CI tests are probably running in a node environment.

Fixes #174

@netlify
Copy link

netlify bot commented Jul 7, 2023

Deploy Preview for storybook-addon-mock ready!

Name Link
🔨 Latest commit 620dc69
🔍 Latest deploy log https://app.netlify.com/sites/storybook-addon-mock/deploys/64a7ef6e9a7e86000834740d
😎 Deploy Preview https://deploy-preview-176--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.

@plumpNation plumpNation marked this pull request as ready for review July 7, 2023 11:00
});

it('should not abort request if aborted signal is not supplied as fetch option', (done) => {
const abortController = new AbortController();
Copy link
Author

Choose a reason for hiding this comment

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

This seems redundant. I guess I was just thinking about ensuring there was a regression test.

@nutboltu nutboltu self-requested a review July 28, 2023 23:35
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 @plumpNation

@nutboltu nutboltu merged commit 4581228 into linearlabs-workspace:master Jul 28, 2023
7 checks passed
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.

[Feature] Should be able to abort fetch requests
2 participants