Is this library dead? And whats the alternative? #12111
Martinspire
started this conversation in
General
Replies: 2 comments 5 replies
-
Related current issues: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @Martinspire, I'm almost ok apart from the spare time on open source. What I can say - it's open source, any contribution is welcome, and anyone can contribute. I'm happy to review and approve, and if someone can dedicate time to the library, more than happy to set the person as main maintainer with all permissions. May things are complex, and I wish everyone can find motivation to solve complexities. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I've been enjoying this library for a lot of years now and appreciate the work that has been done in it. I applaud @satanTime for his efforts and can totally understand how a library like this can eat your time away, or adding frustration to a busy day already.
I hope to be using it for longer, but I think I'm at a crossroad now where I just have little confidence that the project is going to survive for long. When standalone hit, we already noticed a few problems related to how things were mocked and with newer signals its clear that this project needs a few big updates to support the latest features. Let alone when Signal Forms drop.
However, the amount of updates the project got were low and it seems there isn't enough documentation or perhaps even skill for other folks to pick up where satanTime left off. I think there are some smart folks out there that could help the project but I'm not sure if its really possible to be effective, given that the project uses a lot of fixes and workarounds to make it work with a wide range of codebases (which I totally get). I'm not sure how much time satanTime is still willing to spend on it and whether some other problems behind the scenes have caused his time to shrink to almost zero to work on fixes the community is waiting for. I have no problem providing donations to keep work going, but I need to see a bit more effort before I start donating some more. Though anybody else willing to donate some, is always appreciated. Its just not clear where we stand right now and what the possibilities are.
Another problem I noticed, is that there isn't really an alternative right now to mocking these components. I see that a lot of the Angular team have moved to no longer mocking stuff (which I find really weird, defeating the purpose of unit tests and making it difficult to spot where bugs are coming from). I would applaud anybody that would fork this project (to make it work with the latest features of angular 20 and soon to be 21), or to build your own library. I would love it if the Angular team itself would put effort in a mocking solution for the platform, or even take over this project, but I can also understand why that would not provide any short term solutions either. If any at all.
In this discussion I hope to find some answers on the following:
I would love to keep using NgMocks and I've been using a few workarounds to at least get my components tested easily. I stopped using most of the new signals for viewchildren, contentchildren, etc. Only really using input/output/model/linkedSignal/computed/effect, which seems to work still. But no input.required either. And sometimes making custom mocks for when its just not possible to work around sensibly. I'm still on the fence about the future. I don't really like to nót mock my dependencies, but I can also see how much work that would be. Manually making mocks for each component seems very tedious and I'd rather not create duplicates that can cause all other kinds of failures. But without a maintained testing library, I see no other way to keep using it, since its essential to my pipeline and would block future angular updates entirely.
Beta Was this translation helpful? Give feedback.
All reactions