-
Notifications
You must be signed in to change notification settings - Fork 84
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 private(set) really desirable? #133
Comments
We can make it configurable. How soon would you need this? Also feel free to push a PR if possible. Our ETA is within the next couple of weeks. |
@elsh not super critical for us right now. We just quickly changed the code that was making use of this. I would like to understand the reasoning why making it private in the first place is desirable. |
I think |
A method to reset the mock sounds reasonable and even better than manually zeroing the counts. |
Reset is a great idea, but in this case, it actually takes less bookkeeping (thus simpler) to configure setting vars directly via an input flag. See if https://github.com/uber/mockolo/releases/tag/1.3.1 resolves your scenario. If needed we can revisit a reset function in the future. |
@elsh Thanks a lot for the quick help here! Really appreciated |
We just upgraded our mockolo version and saw a bunch of build failures because we were resting the generated
callCount
properties during tests. This was necessary in our tests because of two reasons:Would it make sense to make this configurable in mockolo and for the case of the static method maybe even disable it by default?
The text was updated successfully, but these errors were encountered: