mirror of
https://github.com/facebook/react.git
synced 2026-02-26 03:04:59 +00:00
part of https://github.com/facebook/react/pull/26571 merging separately to improve tracking of files renames in git Rename HostConfig files to FiberConfig to clarify they are configs for Fiber and not Fizz/Flight. This better conforms to the naming used in Flight and now Fizz of `ReactFlightServerConfig` and `ReactFizzConfig`
30 lines
872 B
JavaScript
30 lines
872 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
// Renderers that don't support test selectors
|
|
// can re-export everything from this module.
|
|
|
|
function shim(...args: any): empty {
|
|
throw new Error(
|
|
'The current renderer does not support test selectors. ' +
|
|
'This error is likely caused by a bug in React. ' +
|
|
'Please file an issue.',
|
|
);
|
|
}
|
|
|
|
// Test selectors (when unsupported)
|
|
export const supportsTestSelectors = false;
|
|
export const findFiberRoot = shim;
|
|
export const getBoundingRect = shim;
|
|
export const getTextContent = shim;
|
|
export const isHiddenSubtree = shim;
|
|
export const matchAccessibilityRole = shim;
|
|
export const setFocusIfFocusable = shim;
|
|
export const setupIntersectionObserver = shim;
|