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 deps and include examples in workspaces #6090

Merged
merged 6 commits into from
Apr 30, 2018

Conversation

thymikee
Copy link
Collaborator

@thymikee thymikee commented Apr 28, 2018

Summary

  • Upgraded some deps using yarn upgrade-interactive.
  • Included all examples in workspaces
  • Use latest React on almost all examples (except RN for reasons)

I'm not sure why only RN example was included in Yarn workspaces, so I've added all the projects.
Also, what's the rationale for having dependencies from examples declared in root package.json? Since we use workspaces now it doesn't seem necessary at all, but maybe I'm missing something.

Closes #6092 (obsolete)

Test plan

CI

@@ -1,9 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Looks like this was added to the source by accident

Copy link
Member

Choose a reason for hiding this comment

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

this usually happens if a test run is interrupted. I wonder if we should go through and add all the files we write and then remove from disk to .gitignore to avoid accidentally committing them

@codecov-io
Copy link

codecov-io commented Apr 28, 2018

Codecov Report

Merging #6090 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #6090   +/-   ##
======================================
  Coverage    64.1%   64.1%           
======================================
  Files         217     217           
  Lines        8335    8335           
  Branches        4       3    -1     
======================================
  Hits         5343    5343           
  Misses       2991    2991           
  Partials        1       1

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9850275...27751dc. Read the comment docs.

@SimenB
Copy link
Member

SimenB commented Apr 29, 2018

I think you have to make all the examples private to avoid publishing them.

Also, what's the rationale for having dependencies from examples declared in root package.json

My guess is because they were not in the workspace. Now that they are, we can probably get rid of them from the root.

@thymikee
Copy link
Collaborator Author

Yep, makes sense to move them to correct deps with this PR, or later. For now I've removed "enzyme", "react" and "immutable" from root package.json.

I believe it makes things less confusing for anyone updating examples or pretty-format with extra dependencies for testing.

@cpojer cpojer merged commit f0b1271 into jestjs:master Apr 30, 2018
@cpojer
Copy link
Member

cpojer commented Apr 30, 2018

Cool, thanks for the cleanup. This is much better. I think I had to do things the way they were done for some Jest or Yarn related symlinking issues. Given that the tests still pass, this is way better.

@thymikee thymikee deleted the chore/bump-deps branch April 30, 2018 09:01
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants