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!
I am trying to implement VFS in my own package. While the
node:fsfunctions (including callbacks) are correctly patched during VFS mounting, thenode:fs/promisesfunctions 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/promisesis just as widely used in the ecosystem as the traditionalnode:fsmodule, I believe adding this support is crucial. I have also been following thenode:vfspull request in Node.js core, and I understand that patchingnode:fs/promisesaligns 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!