-
-
Notifications
You must be signed in to change notification settings - Fork 771
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
Sinon 15.0.2 update seems to break callThrough
functionality
#2501
Comments
Just deleted my previous comment about not being able to reproduce I first failed to reproduce the issue, as I copied the verbatim code, but they used non-absolute version numbers and so resultet in 15.0.2 being used in both variations. So verified! |
Works in version 14, 15.0.0, 15.0.1, but broken in 15.0.2. Probably by my doing, if I am not mistaken 😢 Means we have holes in our test coverage! Verification testcase that is runnable based on yours, but simplified https://stackblitz.com/edit/node-3cmnrm (not runnable for the same reasons as above, getting that stack issue) https://runkit.com/fatso83/sinonjs-sinon-2501 (runnable, and breaking on 15.0.2)
|
verified issue with git bisect to be commit 19bd99f
|
Thank you very much! Can confirm that the issue is resolved in |
Describe the bug
Updating
sinon
from 15.0.1 to 15.0.2 breakscallThrough
functionality.To Reproduce
Steps to reproduce the behavior:
Check 15.0.1 behaviour in min reproduction example:
https://stackblitz.com/edit/node-cg7mbz?file=index.spec.js&view=editor
Execute
npm test
in terminal.Check 15.0.2 behaviour in min reproduction example:
https://stackblitz.com/edit/node-k36ehn?file=index.spec.js&view=editor
Execute
npm test
in terminal.Expected behavior
callThrough
should work and in 15.0.2 example the same line should be logged.Screenshots
![image](https://user-images.githubusercontent.com/2946004/227495181-ba29d8db-5506-4d18-bd37-217807ae403b.png)
Working in 15.0.1:
Not working in 15.0.2:
![image](https://user-images.githubusercontent.com/2946004/227495291-5b31f4b2-b541-4819-9b3e-aa424a3d76d8.png)
Context (please complete the following information):
jest
,jest-sinon
Additional context
The text was updated successfully, but these errors were encountered: