Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix source of open FSREQCALLBACK handles #342

Merged
merged 2 commits into from
Nov 8, 2021

Conversation

jloleysens
Copy link
Contributor

@jloleysens jloleysens commented Nov 8, 2021

Closes #341

When collecting the prototype for ReadFileContext the original fsBinding.open should still be called so that FS read operations can be handled as usual.

lib/readfilecontext.js Outdated Show resolved Hide resolved
@3cp
Copy link
Collaborator

3cp commented Nov 8, 2021

@tschaub LGTM.

@maximelafarie
Copy link

@3cp @tschaub Man, this is just in time! Will you do a patch/minor release as soon as it's merged?

@tschaub tschaub merged commit abd285a into tschaub:main Nov 8, 2021
@tschaub
Copy link
Owner

tschaub commented Nov 8, 2021

Thanks for the fix, @jloleysens. Published in mock-fs@5.1.2.

@jloleysens jloleysens deleted the fix/call-original-fsBinding-open branch November 9, 2021 09:11
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using mock-fs with Jest results in open handles
4 participants