Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@testing-library/react

Package Overview
Dependencies
Maintainers
15
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testing-library/react - npm Package Compare versions

Comparing version 16.0.0 to 16.0.1

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc