Errors thrown from the standard fs module have properties set on them such as code, errno, syscall, etc. These properties are no set on the errors thrown by fs-mock. This causes an issue since it is very common for code to branch based on the error code.
Errors thrown from the standard
fsmodule have properties set on them such ascode,errno,syscall, etc. These properties are no set on the errors thrown byfs-mock. This causes an issue since it is very common for code to branch based on the error code.