-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
test(node/fs): add fs.Dir tests #18463
test(node/fs): add fs.Dir tests #18463
Conversation
import Dir from "ext:deno_node/_fs/_fs_dir.ts"; | ||
import type Dirent from "ext:deno_node/_fs/_fs_dirent.ts"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ext:
only works for the internal Deno code. I think these should be imported like the below:
import Dir from "ext:deno_node/_fs/_fs_dir.ts"; | |
import type Dirent from "ext:deno_node/_fs/_fs_dirent.ts"; | |
import { Dir, type Dirent } from "node:fs"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for helping out, I have made the changes according to your suggestion.
Please have a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left one comment. Other part looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Yoshiya Hinosawa <[email protected]>
Part of #17840
I haven't made any changes or additions to the tests themselves, just moved the tests over and updated to match.
_fs tests which have been ported: _fs_dir_test.ts