-
Notifications
You must be signed in to change notification settings - Fork 7
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
Recent change is breaking our unit tests #18
Comments
Testing steps:
returns @sinonjs/commons is at 1.6.0 and tests are failing
After that npm test works again. |
I can sympathise with your challenges of having many tests fail because of a dependency update. However, cace9e6 is a very unobtrusive change, that shouldn't cause anything to fail. For the Sinon family of libraries we try our best to avoid clashes with other libraries (which is the motivation for cace9e6), but we can't anticipate that another library would modify the builtin prototypes. I suspect that the real problem here is that you're using a library that extends the prototypes: https://github.com/montagejs/collections As a quick fix, you might get lucky with loading For background, I'd recommend reading: |
I had a ticket open with collections that I've reopened with a link here. We'll see if they have anything good to contribute here. Also, if anyone else is having this issue and needs a quick fix for now we've just added this to our top level package:
Works for now :D |
I also have exactly the same issue. For me, it fails jest. I could not enforce @sinonjs/commons to 1.4.0, since jest fake-timer depends on it. Any other solution? |
Jest and Sinon have been playing well together for years, I'm not sure this is the same issue. Please open a new issue following the issue template and if you can, please provide a runnable example that shows the failure |
I made it work with: |
What fixes this issue for me if moving |
The recent change you've made cace9e6
is breaking all of our unit tests that use @sinonjs/commons with the following error:
Is it possible to revert this change? It's being included by other dependencies and full impact is not known at this point.
The text was updated successfully, but these errors were encountered: