Skip to content

Sinon 15.0.2 update seems to break callThrough functionality #2501

@migg24

Description

@migg24

Describe the bug
Updating sinon from 15.0.1 to 15.0.2 breaks callThrough 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:
image

Not working in 15.0.2:
image

Context (please complete the following information):

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions