Closed migg24 closed 1 year ago
Both of these fail with the same maximum call stack error
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. "^15.0.1"
will include patch releases, whereas "15.0.1"
will never move.
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 19bd99f364ab44f0e2715571e5deab580d9aa7fd
Thank you very much! Can confirm that the issue is resolved in 15.0.3
.
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 Working in 15.0.1:
Not working in 15.0.2:
Context (please complete the following information):
jest
,jest-sinon
Additional context