Skip to content

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

Merged
3cp merged 5 commits into
mainfrom
opendir
Mar 19, 2021
Merged

chore: cleanup tests and small fix on mockfs.bypass#320
3cp merged 5 commits into
mainfrom
opendir

Conversation

@3cp

@3cp 3cp commented Mar 12, 2021

Copy link
Copy Markdown
Collaborator

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

tschaub commented Mar 19, 2021

Copy link
Copy Markdown
Owner

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