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

fix(package): update jest dependencies #21

Merged
merged 1 commit into from
Jan 30, 2018
Merged

fix(package): update jest dependencies #21

merged 1 commit into from
Jan 30, 2018

Conversation

SimenB
Copy link
Member

@SimenB SimenB commented Jan 11, 2018

(mostly to not rely on beta releases)

@SimenB SimenB requested a review from thymikee January 11, 2018 11:45
- "bar",
"baz",
+ "quoz",
]
Copy link
Member

Choose a reason for hiding this comment

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

@SimenB do you have any ideas on why do we have extra space in the snapshots?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure. It's a diff for jest 21. I'll see if I can isolate it

Copy link
Member Author

@SimenB SimenB Jan 11, 2018

Choose a reason for hiding this comment

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

Choose a reason for hiding this comment

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

Yes, that PR fixed a difference (pardon the pun :) between options:

  • expand: true output a one-space “gutter” between -/+/space and content so content aligned with labels (see can expand diff 1 below)
  • expand: false did not, but now it does, so the snapshot will not change if you toggle the option (for a diff which has fewer lines than the context)

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

You guys are awesome

very
long
script
"

Choose a reason for hiding this comment

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

@thymikee This change is from jestjs/jest#4520:

  • expand: false option made sure that strings end with newline
  • expand: true did not, and in this case it even trimmed the newline at end of expected and received strings!

@thymikee
Copy link
Member

Thanks @SimenB @pedrottimark we'll need to mark it as breaking change then.

@thymikee
Copy link
Member

@SimenB ping, we have a CI now 😉 thanks for reminding me about it

@SimenB
Copy link
Member Author

SimenB commented Jan 29, 2018

@thymikee Do you think this is ok to merge? It changes the snapshots as mentioned, so it's a breaking change.

Should we fix #20 as well before a new release?

Breaking change: indentation of diff has changed
"strip-ansi": "^4.0.0"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-preset-env": "^1.6.0",
"babel-preset-flow": "^6.23.0",
"babel-preset-react": "^6.24.1",
"eslint": "^4.3.0",
"eslint": "~4.13.0",
Copy link
Member Author

Choose a reason for hiding this comment

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

I deleted the lockfile to update all deps within semver, and without also updating eslint-config-callstack-io we are hit by the babel-eslint bug.

Copy link
Member

Choose a reason for hiding this comment

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

Sure, good move

Copy link
Member

Choose a reason for hiding this comment

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

We can update the eslint config in the followup PR though

@thymikee
Copy link
Member

I'm cool with next release to be a major, happy to see #20 as a part of it. I'll try to squeeze some time tomorrow or so to do some work (would also be cool to add more plugins by default, e.g. ReactTestComponent, not only ReactElement)

@pedrottimark
Copy link

@SimenB @thymikee For your info, when replace diff with diff-sequences in jest-diff it will also be a breaking change. If that seems like anytime soon, we might wait on it to avoid churn.

@thymikee
Copy link
Member

@pedrottimark that's a valid point. We don't have a release schedule, so I'm ok with waiting a bit for the new release. WDYT @SimenB?

@SimenB
Copy link
Member Author

SimenB commented Jan 30, 2018

It's annoying to see beta deps in my tree but there is no rush of course 🙂

@SimenB
Copy link
Member Author

SimenB commented Jan 30, 2018

I cannot reproduce the failing node 6 test locally 🙁. Is this travis and colors again?

@thymikee thymikee merged commit a4b3d51 into master Jan 30, 2018
@thymikee
Copy link
Member

Looks like Travis being color blind again 🤷‍♂️

@thymikee thymikee deleted the update-jest branch January 30, 2018 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants