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

Jest 25 #837

Merged
merged 7 commits into from
Jan 24, 2020
Merged

Jest 25 #837

merged 7 commits into from
Jan 24, 2020

Conversation

eps1lon
Copy link

@eps1lon eps1lon commented Jan 23, 2020

c7ebfe1: matches chrome now: https://codesandbox.io/s/resets-value-of-datetime-input-to-fix-bugs-in-ios-safari-1ppwh
ce21316: unknown
db63f6d: example of browser behavior for one of the affected tests: https://codesandbox.io/s/beautiful-cdn-ugn8f
225c19b: was already marked as JSDOM workaround
1a7870f: JSDOm now supports passive events. Though this removes a significant amount of "useful" assertions. Core member would need to look
010a0d1: "Fixed focusing an already-focused element to correctly do nothing, instead of firing additional focus events." -- jsdom 15.2.1
118d91b: "Add basic support for CSS custom properties" -- cssstyle 2.2.0; waiting for jsdom/cssstyle#112 resolution

expect(events).toEqual(
expect.arrayContaining([expect.objectContaining({isChanged: true})]),
);
expect(events).toHaveLength(0);
Copy link
Author

Choose a reason for hiding this comment

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

@trueadm The tests in this file look suspicious. As far as I can tell they changed due to JSDOM supporting passive events. At least I noticed that it bails out at https://github.com/eps1lon/react/blob/118d91b1eced121a38cc7da988194f713ca6248a/packages/react-interactions/events/src/dom/Drag.js#L169. Don't know if this was the case before though.

@SimenB SimenB merged commit 7ab99c7 into SimenB:jest-25 Jan 24, 2020
@eps1lon eps1lon deleted the jest-25 branch January 24, 2020 17:23
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.

2 participants