react/scripts/jest
Andrew Clark 8b9c4d1688
Expose LegacyHidden type and disable <div hidden /> API in new fork (#18891)
* Expose LegacyHidden type

I will use this internally at Facebook to migrate away from
<div hidden />. The end goal is to migrate to the Offscreen type, but
that has different semantics. This is an incremental step.

* Disable <div hidden /> API in new fork

Migrates to the unstable_LegacyHidden type instead. The old fork does
not support the new component type, so I updated the tests to use an
indirection that picks the correct API. I will remove this once the
LegacyHidden (and/or Offscreen) type has landed in both implementations.

* Add gated warning for `<div hidden />` API

Only exists so we can detect callers in www and migrate them to the new
API. Should not visible to anyone outside React Core team.
2020-05-11 20:02:08 -07:00
..
matchers Avoid passing custom stacks to console.error (#18685) 2020-04-21 09:22:46 -07:00
spec-equivalence-reporter Interaction tracing works across hidden and SSR hydration boundaries (#15872) 2019-06-14 18:08:23 -07:00
typescript Update typescript package and jest preprocessor (#17839) 2020-01-14 13:52:52 -08:00
TestFlags.js Expose LegacyHidden type and disable <div hidden /> API in new fork (#18891) 2020-05-11 20:02:08 -07:00
config.base.js Update to Jest 25 (#18480) 2020-04-03 16:37:36 +01:00
config.build-devtools.js DevTools: Improved "native" component stacks (#18656) 2020-04-21 11:46:11 -07:00
config.build.js Fix test_build_devtools CI job to run test-build-devtools (#17631) 2019-12-16 16:03:12 -08:00
config.source-persistent.js Export React as Named Exports instead of CommonJS (#18106) 2020-02-25 13:54:27 -08:00
config.source-www.js Add test run that uses www feature flags (#18234) 2020-03-06 09:29:05 -08:00
config.source.js Export React as Named Exports instead of CommonJS (#18106) 2020-02-25 13:54:27 -08:00
dont-run-jest-directly.js Add error when running jest directly (#12726) 2018-05-01 12:46:17 -07:00
noHaste.js Forbid Haste in Jest (#11647) 2017-11-23 18:02:47 +00:00
preprocessor.js Add pragma for feature testing: @gate (#18581) 2020-04-13 10:14:34 -07:00
setupEnvironment.js Add test run that uses www feature flags (#18234) 2020-03-06 09:29:05 -08:00
setupHostConfigs.js Point ReactDOMForked to the new implementation 2020-04-09 00:03:35 -07:00
setupTests.build.js Add new mock build of Scheduler with flush, yield API (#14964) 2019-02-26 20:51:17 -08:00
setupTests.js Codemod it.experimental to gate pragma (#18582) 2020-04-13 10:28:59 -07:00
setupTests.persistent.js Run persistent mode tests in CI (#15029) 2019-03-11 10:56:34 -07:00
setupTests.www.js Disable module components dynamically for WWW (#18446) 2020-04-01 18:31:59 +01:00
shouldIgnoreConsoleError.js warn if you try to use act() in prod (#16282) 2019-08-05 13:01:05 -07:00