-
Notifications
You must be signed in to change notification settings - Fork 86
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
Is this project maintained? #383
Comments
I'm happy to help review changes if anybody is interested in contributing fixes. The project has benefitted from @3cp's significant contributions over time. I am not making use of it in many projects, so am not dedicating time to investigating fixes for the issues mentioned above. |
Thanks, @tschaub! Can you provide input on how releases are cut for this project? |
@ryanblock - releases are pretty manual. Something along the lines of
Developing fixes and adding tests has been more of a heavy lift than cutting releases. |
Nodejs internal change does make it harder and harder for mock-fs to keep up. There is also #358, #319, we probably has no way to support it because Nodejs would not expose the new In linked issue in #319, nodejs/node#37746 (comment) I started avoiding mock-fs on new projects. As a result, I am spending much less time on maintaining mock-fs. One technique I am using is to avoid direct calling of fs methods, create a wrapper file for fs, every other files are using my own version of |
@3cp thank you for the context, super helpful. I spent a few hours this afternoon researching how
Re. Jest, for whatever it's worth, I personally draw bright lines around using and supporting it (and anything else that mutates globals). To me #382 and any other issues related to Jest would probably be best categorized as #wontfix. That said, if @tschaub is not actively investing time in the project, and you are avoiding using |
A followup: after considering this thread for a couple days I opted to whip up a library that (mostly) clones It's still early days but so far it seems to be working well thus far in the couple projects I've implemented it in this week. Unfortunately, I suspect it will lead to a small amount of business logic changes to accommodate the temp working dir, but I guess eventually that is to be expected when working with filesystem testing. Anyway, thanks again to @tschaub and @3cp (and everyone else who's contributed) for all your work on this library, it's been so good for so long. 💕 |
It has some nasty, hard-to-fix bugs in current versions of Node.js (tschaub/mock-fs#377, tschaub/mock-fs#380) and an uncertain future (tschaub/mock-fs#383). Also, this package's tests don't really need to mock the entire filesystem; they just need to write files to a temp directory that can be deleted when the tests are complete.
That is sad news, because I personally am finding mock-fs a lot easier to use than the main competitor, I do wonder if Customization hooks (formerly known as loaders) might conceptually be a way to work around the missing |
mock-fs is incompatible with newer versions of Node (see tschaub/mock-fs#384) and in the long run unlikely to be fixable (tschaub/mock-fs#383).
Hi there! Like many folks, we rely on
mock-fs
– it's done an excellent job for us!In late October 2023 Node.js 20.x went into active LTS status, making it the version recommended by most teams / companies to use. As we've seen in #380 and #382, 20.x has introduced issues with
mock-fs
. Unfortunately, these issues have not been spoken to, let alone remediated.As an open source maintainer, I totally understand the myriad challenges related to maintaining a library like
mock-fs
. That said, I think it would be helpful to understand whether the primary maintainer (@tschaub) intends to continue work on this project so folks can make decisions on how to move forward.Related: if you're looking for volunteers to delegate commit privileges I'd be happy to raise my hand, as I'm sure would be a few others around these parts.
💕🙏🏼
The text was updated successfully, but these errors were encountered: