-
-
Notifications
You must be signed in to change notification settings - Fork 770
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
Upgrade nise and browserify #2175
Conversation
PR to have a common way to detect the correct global: sinonjs/commons#46 |
6705b76
to
f34a13e
Compare
"./lib/sinon.js", | ||
{ | ||
// Create a UMD wrapper and install the "sinon" global: | ||
standalone: "sinon", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this wasn't done before, which makes this bundle essentially unusable. I guess nobody actually uses this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me 👍
Purpose (TL;DR) - mandatory
--no-detect-globals
which needed a few adjustments to global detection in test cases.detectGlobals
tofalse
when bundling Sinon.The last step currently fails the Worker test because we're doing the global detection wrong everywhere. I suggest we create a utility for this inEdit: this has been done.commons
, use that innise
andlolex
and create patch releases.Fixes #2119
How to verify - mandatory
npm install
npm test
npm run test-cloud
Checklist for author
npm run lint
passes