You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,17 +93,17 @@ await act(async () => {
93
93
94
94
Configuration options for the test renderer. Many of these options correspond to React Reconciler configuration options. For detailed information about reconciler-specific options, refer to the [React Reconciler source code](https://github.com/facebook/react/tree/main/packages/react-reconciler).
|`textComponentTypes`|`string[]`| Types of host components that are allowed to contain text nodes. Trying to render text outside of these components will throw an error. Useful for simulating React Native's text rendering rules. |
99
-
|`publicTextComponentTypes`|`string[]`| Host component types to display to users in error messages when they try to render text outside of `textComponentTypes`. Defaults to `textComponentTypes` if not provided. |
100
-
|`createNodeMock`|`(element: ReactElement) => object`| Function to create mock objects for refs. Called once per element that has a ref. Defaults to returning an empty object. |
101
-
|`transformHiddenInstanceProps`|`({ props, type }: { props: Record<string, unknown>; type: string }) => Record<string, unknown>`| Transforms host instance props when React marks an instance as hidden (for example, while Suspense fallback is shown). Return a new props object instead of mutating the provided one. When provided, hidden instances stay visible in `children` and `toJSON()` output using transformed props.|
102
-
|`identifierPrefix`|`string`| A string prefix React uses for IDs generated by `useId()`. Useful to avoid conflicts when using multiple roots. |
103
-
|`isStrictMode`|`boolean`| Enable React Strict Mode. When enabled, components render twice and effects run twice in development. |
104
-
|`onCaughtError`|`(error: unknown, errorInfo: { componentStack?: string }) => void`| Callback called when React catches an error in an Error Boundary. Called with the error caught by the Error Boundary and an errorInfo object containing the component stack. |
105
-
|`onUncaughtError`|`(error: unknown, errorInfo: { componentStack?: string }) => void`| Callback called when an error is thrown and not caught by an Error Boundary. Called with the error that was thrown and an errorInfo object containing the component stack. |
106
-
|`onRecoverableError`|`(error: unknown, errorInfo: { componentStack?: string }) => void`| Callback called when React automatically recovers from errors. Called with an error React throws and an errorInfo object containing the component stack. Some recoverable errors may include the original error cause as `error.cause`. |
|`textComponentTypes`|`string[]`| Types of host components that are allowed to contain text nodes. Trying to render text outside of these components will throw an error. Useful for simulating React Native's text rendering rules.|
99
+
|`publicTextComponentTypes`|`string[]`| Host component types to display to users in error messages when they try to render text outside of `textComponentTypes`. Defaults to `textComponentTypes` if not provided.|
100
+
|`createNodeMock`|`(element: ReactElement) => object`| Function to create mock objects for refs. Called once per element that has a ref. Defaults to returning an empty object.|
101
+
|`transformHiddenInstanceProps`|`({ props, type }: { props: Record<string, unknown>; type: string }) => Record<string, unknown>`| Transforms host instance props when React marks an instance as hidden (for example, while Suspense fallback is shown). Return a new props object instead of mutating the provided one. When provided, hidden instances stay visible in `children` and `toJSON()` output using transformed props. |
102
+
|`identifierPrefix`|`string`| A string prefix React uses for IDs generated by `useId()`. Useful to avoid conflicts when using multiple roots.|
103
+
|`isStrictMode`|`boolean`| Enable React Strict Mode. When enabled, components render twice and effects run twice in development.|
104
+
|`onCaughtError`|`(error: unknown, errorInfo: { componentStack?: string }) => void`| Callback called when React catches an error in an Error Boundary. Called with the error caught by the Error Boundary and an errorInfo object containing the component stack.|
105
+
|`onUncaughtError`|`(error: unknown, errorInfo: { componentStack?: string }) => void`| Callback called when an error is thrown and not caught by an Error Boundary. Called with the error that was thrown and an errorInfo object containing the component stack.|
106
+
|`onRecoverableError`|`(error: unknown, errorInfo: { componentStack?: string }) => void`| Callback called when React automatically recovers from errors. Called with an error React throws and an errorInfo object containing the component stack. Some recoverable errors may include the original error cause as `error.cause`.|
0 commit comments