-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Snapshot mock #4829
Comments
I think this was an intentional change. cc @pedrottimark |
This is #4668. Did not think of this case... IMO it's fine :D |
@SimenB You were thinking snapshot of mock function itself to see how it was called? Thinking of possible objections in this context, the snapshot changes:
|
This is fine. If you really want a stub, pass
Not as clear, but if I'm moving where the snapshot is taken, I'd not be too surprised at having to update the snapshots (and the invocations of that function does change, so, if anything, it's more accurate than just |
Yeah, I think it is fine to keep it. |
OK; I have two things then:
|
Current master has a few breaking changes (this should also be marked as one), so I think the next release will be 22 anyways.
I'm inclined to say yes, but maybe we could somehow change the header from |
@SimenB yeah, I think it makes sense to change it from Object to "MockFunction { … }"? |
Love it. +1 to |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I just updated to
[email protected]
and found what appears to be wrong snapshotting for mocked functions:Is this expected (i.e. should I run with
-u
?)The text was updated successfully, but these errors were encountered: