Skip to content

Support patches core fs/promises functions #8

@8su4

Description

@8su4

I am trying to implement VFS in my own package. While the node:fs functions (including callbacks) are correctly patched during VFS mounting, the node:fs/promises functions currently are not.

As a result, if a third-party package relies on node:fs/promises, it bypasses the VFS and cannot access the virtual file system.

Since node:fs/promises is just as widely used in the ecosystem as the traditional node:fs module, I believe adding this support is crucial. I have also been following the node:vfs pull request in Node.js core, and I understand that patching node:fs/promises aligns with the intended upstream behavior. (#61478: lib/internal/fs/promises.js)

If you are open to it, I would be happy to submit a PR to implement this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions