react/fixtures/dom
Simen Bekkhus cf0081263c Upgrade to jest 25 (#17896)
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.
2020-01-25 08:43:02 -08:00
..
public using the wrong renderer's act() should warn (#15756) 2019-05-29 22:56:04 +01:00
src Bump Prettier (#17811) 2020-01-09 13:54:11 +00:00
.gitignore act() - s / flushPassiveEffects / Scheduler.unstable_flushWithoutYielding (#15591) 2019-05-16 17:12:36 +01:00
package.json Upgrade to jest 25 (#17896) 2020-01-25 08:43:02 -08:00
README.md reference yarn instead of npm in dom fixtures README (#11374) 2017-10-26 17:51:58 +01:00
yarn.lock Upgrade to jest 25 (#17896) 2020-01-25 08:43:02 -08:00

DOM Fixtures

A set of DOM test cases for quickly identifying browser issues.

Setup

To reference a local build of React, first run yarn build at the root of the React project. Then:

cd fixtures/dom
yarn
yarn start

The start command runs a script that copies over the local build of react into the public directory.