-
-
Notifications
You must be signed in to change notification settings - Fork 769
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
Remove unused/meaningless exports and modules from the codebase #2561
Milestone
Comments
fatso83
added a commit
to fatso83/sinon
that referenced
this issue
Oct 29, 2023
default-config and get-config are leftovers from when Sinon shipped with sinon.test (now the independent NPM module 'sinon-test'). These serve no purpose internally, and really have no purpose but to help sinon-test create a base default. If needed, these can be copied into the sinon-test project. No projects should depend on these (my assumption), but since it is a change of the API we mark it as a breaking change fixes sinonjs#2561
duplicates #2565 |
fatso83
added a commit
that referenced
this issue
Nov 2, 2023
* breaking: Remove sinon.defaultConfig and related modules default-config and get-config are leftovers from when Sinon shipped with sinon.test (now the independent NPM module 'sinon-test'). These serve no purpose internally, and really have no purpose but to help sinon-test create a base default. If needed, these can be copied into the sinon-test project. No projects should depend on these (my assumption), but since it is a change of the API we mark it as a breaking change fixes #2561 * fixed up tests that were lying It seemed like the the 'injectInto' option would expose most props by default. This was not the case. That was formerly hidden by using the getConfig call that added props that were never used in the actual implementation. Added another test to make this more explicit. Will add docs on this. * Document Sandbox#inject This was added in Sinon 0.6 but has never been documented * Note that 'properties' is empty by default
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both
sinon.defaultConfig
(default-config.js
) and theget-config
modules are unused in the sinon codebase. They originally existed to support sinonTest, which is a separate module, and should just be removed. They can be moved over into that project independently.The text was updated successfully, but these errors were encountered: