sinon-test is broken when using sinon v17.0.2
john-mills-nz opened this issue · comments
Describe the bug
After upgrading sinon to v17.0.2 sinon-test stops working. The error TypeError: this.stub is not a function
occurs. Reverting to v17.0.1 fixes it.
To Reproduce
Steps to reproduce the behavior:
- Update to v17.0.2
- Run tests
- See error
-
Sinon version : v17.0.2
-
Other libraries you are using:
- sinon-test
Thanks for posting. The change that affects you is probably 93db3ef, which was supposed to be non-breaking, as mentioned in the commit was explicitly noted as breaking, without my checking the changelog before releasing a new version. I need to look into what is breaking before fixing, as I don't really see why ATM, but it's probably the defaultConfig
that was removed.
To unblock people, I reverted the latest
tag to point to the previous release on the NPM registry. You will need to remove node_modules to get that.