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

chore: cleanup tests and small fix on mockfs.bypass #320

Merged
merged 5 commits into from
Mar 19, 2021
Merged

chore: cleanup tests and small fix on mockfs.bypass #320

merged 5 commits into from
Mar 19, 2021

Conversation

3cp
Copy link
Collaborator

@3cp 3cp commented Mar 12, 2021

I was planning to use this branch to implement fs.opendir, but it seems Nodejs would not open up access to internal binding fs_dir nodejs/node#37746 (comment)

This PR fixes mockfs.bypass support of Promise on old Nodejs versions where Promise.prototype.finally is not available. Also cleaned up the tests.

@3cp 3cp marked this pull request as draft March 12, 2021 22:44
assert.fail throws an error. The done() after it will never be reached.
It results to a timeout.
@3cp 3cp force-pushed the opendir branch 3 times, most recently from afb1873 to 85bc620 Compare March 13, 2021 23:08
@3cp 3cp changed the title WIP feat: support fs.opendir in nodejs v12.12.0+ chore: cleanup tests and small fix on mockfs.bypass Mar 14, 2021
@3cp 3cp requested a review from tschaub March 14, 2021 02:36
@3cp 3cp marked this pull request as ready for review March 14, 2021 02:36
@tschaub
Copy link
Owner

tschaub commented Mar 19, 2021

Looks good to me. Thanks, @3cp.

@3cp 3cp merged commit 648d299 into main Mar 19, 2021
@3cp 3cp deleted the opendir branch March 19, 2021 21:15
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