Skip to content
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 to sinon 5.x #395

Merged
merged 2 commits into from
Jul 5, 2018
Merged

upgrade to sinon 5.x #395

merged 2 commits into from
Jul 5, 2018

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented May 16, 2018

just bumping sinon to 5.x.

Fixes #228.

the types aren't quite right but they work for us it seems (they get fixed in DefinitelyTyped/DefinitelyTyped#25491).

is this fine? wct was an odd one, it still has @polymer/sinonjs.. do we need that still?

cc @rictic

@merlinnot
Copy link
Contributor

So you work on types for Sinon and you contribute to Polymer/tools? Much love mate ❤️

@43081j
Copy link
Contributor Author

43081j commented May 24, 2018

FYI the sinon 5.x types have been merged now.

ill try rebase this at the weekend and pull in the new types. though because lock files are such a pain to fix conflicts in, i may just start again 🙈

@merlinnot
Copy link
Contributor

You can always regenerate lockfiles :)

@43081j
Copy link
Contributor Author

43081j commented May 24, 2018

turns out npm automatically resolves git conflicts in package-lock.json files as long as your package.json is resolved!

tests pass but the diff on the lock files looks unusually different considering the small footprint of my change. if i regen them all the additions seem to stick around so i guess its right?

cc @rictic maybe? to get this merged/checked

@merlinnot
Copy link
Contributor

@43081j AppVeyor

@43081j
Copy link
Contributor Author

43081j commented May 29, 2018

doesn't look like the result on my changes:

info: [cli.install]    Installing npm dependencies...
error: [cli.main]   cli runtime exception: Error: Command failed: npm install
npm ERR! code 1
npm ERR! Command failed: C:\Program Files\Git\cmd\git.EXE submodule update -q --init --recursive
npm ERR! C:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 19: .: git-sh-setup: file not found
npm ERR! 

something specific to appveyor or how we have it configured maybe?

@43081j
Copy link
Contributor Author

43081j commented May 29, 2018

@justinfagnani can you take a look at this when you have time?

looks like the appveyor build fails for an unrelated reason but looks good otherwise.

@justinfagnani
Copy link
Contributor

@43081j is this a breaking change?

@43081j
Copy link
Contributor Author

43081j commented May 29, 2018

@justinfagnani on our end? i don't think so as only tests and dev dependencies should have been altered

its a major version bump of sinon but this PR shouldn't affect any non-test code we have.

@justinfagnani
Copy link
Contributor

I'm wondering if for test code that uses sinon as provided will break, which would require a major-version bump of wct-browser-legacy

@merlinnot
Copy link
Contributor

@43081j
Copy link
Contributor Author

43081j commented May 29, 2018

ah you have a fair point @justinfagnani

fortunately i think i left that package alone? i did update the one in the main WCT package but not legacy afaik.

@43081j
Copy link
Contributor Author

43081j commented Jun 5, 2018

@justinfagnani any chance we can get this merged? if i need to change something to avoid needing a breaking change, let me know.

just want to avoid the pr going stale

@43081j 43081j force-pushed the sinon-update branch 2 times, most recently from 2d83cbb to 01c07b6 Compare July 2, 2018 20:56
Copy link
Contributor

@TimvdLippe TimvdLippe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not update the packages of web-component-tester. I am working on that in a different PR and it involves breaking changes. The upgrades to (dev-)dependencies in the other packages are okay

@43081j
Copy link
Contributor Author

43081j commented Jul 3, 2018

@TimvdLippe i reverted the wct changes

i didn't change my original commit so i can keep the code changes locally

Copy link
Contributor

@TimvdLippe TimvdLippe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@TimvdLippe TimvdLippe merged commit 021e614 into Polymer:master Jul 5, 2018
@43081j 43081j deleted the sinon-update branch July 6, 2018 10:56
@ernsheong
Copy link

ernsheong commented Sep 15, 2018

Please do not update the packages of web-component-tester

@TimvdLippe Any update regarding web-component-tester? Still stuck in 1.x, it's 6.x now

@TimvdLippe
Copy link
Contributor

That update is being done separately atm. See the work on wct-mocha et al in other PRs.

@osamamaruf
Copy link

Till the sinon version is bumped should't #228 be kept open? (its 7.x now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[wct] Update Sinon to the latest version
7 participants