-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
📦 Update dependency sinon to v10 #33418
📦 Update dependency sinon to v10 #33418
Conversation
594fa88
to
35f91f9
Compare
@rsimha do we use node lts too for windows? it seems to be throwing a error on |
Yes we do. See the
This appears to be by design. There's a clue in the release notes and in the fact that the major version is changing. Looks like we need to run a babel transform against the module. |
35f91f9
to
d069567
Compare
Since I took a stab at getting @jridgewell Any idea what's going on here? Do we still care enough about running a small handful of tests on IE 11? Perhaps it's time to drop IE support? |
9057226
to
3b0af70
Compare
Inspecting the output, I see on line 83 of the file run by IE11: assert.fail(`${method} is not a function`); This means we're either not transforming the file with Babel, or esbuild is outputting ES6 syntax instead of ES5. |
esbuild is set to
node_modules exclusion?
|
5d16fb1
to
ab1ece4
Compare
Correct, we weren't transforming |
c244b74
to
0c81a2a
Compare
What change did you make? |
diff --git a/build-system/test-configs/config.js b/build-system/test-configs/config.js
index e2ea67e47..3ca9457fc 100644
--- a/build-system/test-configs/config.js
+++ b/build-system/test-configs/config.js
@@ -82,6 +82,7 @@ const karmaJsPaths = [
'ads/**/test/test-*.js',
'extensions/**/test/**/*.js',
'testing/**/*.js',
+ 'node_modules/sinon/**/.js',
]; Another thing I just noticed is that this change is introducing a silent failure on other platforms as well. For example, here. I think we should just throw an error when zero tests are detected (unlike earlier, when zero tests was a mostly harmless transitional condition). Edit: Sent out #34040 with this change. |
0c81a2a
to
03666d6
Compare
Hey @rsimha! These files were changed:
|
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.
Bravo, @jridgewell! (And thanks for digging into the root cause.)
* 📦 Update dependency sinon to v10 * Bundle and transform sinon, chai, and sinon-chai Co-authored-by: Justin Ridgewell <jridgewell@google.com>
This PR contains the following updates:
9.2.4
->10.0.0
How to resolve breaking changes
This PR may introduce breaking changes that require manual intervention. In such cases, you will need to check out this branch, fix the cause of the breakage, and commit the fix to ensure a green CI build. To check out and update this PR, follow the steps below:
Release Notes
sinonjs/sinon
v10.0.0
Compare Source
==================
Configuration
📅 Schedule: "after 12am every weekday" in timezone America/Los_Angeles.
🚦 Automerge: Enabled.
♻️ Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.