@testing-library/react
Advanced tools
Comparing version 16.0.0 to 16.0.1
{ | ||
"name": "@testing-library/react", | ||
"version": "16.0.0", | ||
"version": "16.0.1", | ||
"description": "Simple and complete React DOM testing utilities that encourage good testing practices.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -39,5 +39,6 @@ // TypeScript Version: 3.8 | ||
| HydrateableContainer | ||
| Array<RendererableContainer | HydrateableContainer>, | ||
maxLength?: number, | ||
options?: prettyFormat.OptionsReceived, | ||
| Array<RendererableContainer | HydrateableContainer> | ||
| undefined, | ||
maxLength?: number | undefined, | ||
options?: prettyFormat.OptionsReceived | undefined, | ||
) => void | ||
@@ -101,3 +102,3 @@ rerender: (ui: React.ReactNode) => void | ||
*/ | ||
container?: Container | ||
container?: Container | undefined | ||
/** | ||
@@ -109,3 +110,3 @@ * Defaults to the container if the container is specified. Otherwise `document.body` is used for the default. This is used as | ||
*/ | ||
baseElement?: BaseElement | ||
baseElement?: BaseElement | undefined | ||
/** | ||
@@ -117,3 +118,3 @@ * If `hydrate` is set to `true`, then it will render with `ReactDOM.hydrate`. This may be useful if you are using server-side | ||
*/ | ||
hydrate?: boolean | ||
hydrate?: boolean | undefined | ||
/** | ||
@@ -124,3 +125,3 @@ * Only works if used with React 18. | ||
*/ | ||
legacyRoot?: boolean | ||
legacyRoot?: boolean | undefined | ||
/** | ||
@@ -131,3 +132,3 @@ * Queries to bind. Overrides the default set from DOM Testing Library unless merged. | ||
*/ | ||
queries?: Q | ||
queries?: Q | undefined | ||
/** | ||
@@ -139,3 +140,3 @@ * Pass a React Component as the wrapper option to have it rendered around the inner element. This is most useful for creating | ||
*/ | ||
wrapper?: React.JSXElementConstructor<{children: React.ReactNode}> | ||
wrapper?: React.JSXElementConstructor<{children: React.ReactNode}> | undefined | ||
} | ||
@@ -158,3 +159,3 @@ | ||
ui: React.ReactNode, | ||
options?: Omit<RenderOptions, 'queries'>, | ||
options?: Omit<RenderOptions, 'queries'> | undefined, | ||
): RenderResult | ||
@@ -234,3 +235,3 @@ | ||
*/ | ||
initialProps?: Props | ||
initialProps?: Props | undefined | ||
} | ||
@@ -250,3 +251,3 @@ | ||
render: (initialProps: Props) => Result, | ||
options?: RenderHookOptions<Props, Q, Container, BaseElement>, | ||
options?: RenderHookOptions<Props, Q, Container, BaseElement> | undefined, | ||
): RenderHookResult<Result, Props> | ||
@@ -253,0 +254,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
329425
3758
0
17