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

Docs: add simpler solution to implement (closes #181) #182

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JPeer264
Copy link

I did not include automock: false as this is false by default.

(ref: #181)

@JPeer264 JPeer264 changed the title Docs: add simpler solution to implement Docs: add simpler solution to implement (closes #181) Oct 20, 2020
@yinzara
Copy link
Collaborator

yinzara commented Oct 28, 2020

This an interesting proposal. I was not aware jest supported this kind of syntax. There is actually additional code changes required so I'll take this myself.

@JPeer264
Copy link
Author

JPeer264 commented Nov 2, 2020

@yinzara the only thing which is missing is a self execution, I guess the fasted would be to enable mocks before exporting the mock.

+ fetch.enableMocks();

module.exports = fetch.default = fetch

Sorry for assuming this already works, I was too much in rush back then.

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.

2 participants