From c099e5a5cf918d8c9c0797f0d432495ff00d3165 Mon Sep 17 00:00:00 2001 From: Andrew Clark Date: Tue, 24 Mar 2020 10:15:06 -0700 Subject: [PATCH] Revert "Upgrade to jest 25 (#17896)" This reverts commit cf0081263ced42ddebe0a0d868701890448bfd4b. The changes to the test code relate to changes in JSDOM that come with Jest 25: * Several JSDOM workarounds are no longer needed. * Several tests made assertions to match incorrect JSDOM behavior (e.g. setAttribute calls) that JSDOM has now patched to match browsers. * https://codesandbox.io/s/resets-value-of-datetime-input-to-fix-bugs-in-ios-safari-1ppwh * JSDOM no longer triggers default actions when dispatching click events. * https://codesandbox.io/s/beautiful-cdn-ugn8f * JSDOM fixed (jsdom/jsdom#2700) a bug so that calling focus() on an already focused element does not dispatch a FocusEvent. * JSDOM now supports passive events. * JSDOM has improved support for custom CSS properties. * But requires jsdom/cssstyle#112 to land to support webkit prefixed properties.