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

Provide empty Node mocks for fs, net, tls #672

Merged
merged 1 commit into from
Sep 18, 2016
Merged

Conversation

gaearon
Copy link
Contributor

@gaearon gaearon commented Sep 18, 2016

This is occasionally requested, e.g. for #495. I checked, and request() works if I add these mocks.

The mocks are empty objects.
They don’t increase size normally because they are added lazily only if you import them.

@gaearon gaearon added this to the 0.4.2 milestone Sep 18, 2016
@ghost ghost added the CLA Signed label Sep 18, 2016
@gaearon gaearon merged commit 3a42ff9 into master Sep 18, 2016
@gaearon gaearon deleted the provide-empty-mocks branch September 18, 2016 11:09
feiqitian pushed a commit to feiqitian/create-react-app that referenced this pull request Oct 25, 2016
@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant