Skip to content

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

Merged
gaearon merged 1 commit into
masterfrom
provide-empty-mocks
Sep 18, 2016
Merged

Provide empty Node mocks for fs, net, tls#672
gaearon merged 1 commit into
masterfrom
provide-empty-mocks

Conversation

@gaearon

Copy link
Copy Markdown
Contributor

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.

@gaearongaearon added this to the 0.4.2 milestone Sep 18, 2016
@ghostghost added the CLA Signed label Sep 18, 2016
@gaearon
gaearon merged commit 3a42ff9 into masterSep 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
@locklockBot locked and limited conversation to collaborators Jan 22, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@gaearon