sinonjs / sinon

Test spies, stubs and mocks for JavaScript.

Home Page:https://sinonjs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. Update to v17.0.2
  2. Run tests
  3. 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.