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

@testing-library/react

Package Overview
Dependencies
Maintainers
16
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 12.1.2 to 12.1.5

4

dist/pure.js

@@ -14,4 +14,2 @@ "use strict";

};
exports.render = render;
exports.cleanup = cleanup;
Object.defineProperty(exports, "act", {

@@ -23,2 +21,3 @@ enumerable: true,

});
exports.cleanup = cleanup;
Object.defineProperty(exports, "fireEvent", {

@@ -30,2 +29,3 @@ enumerable: true,

});
exports.render = render;

@@ -32,0 +32,0 @@ var React = _interopRequireWildcard(require("react"));

{
"name": "@testing-library/react",
"version": "12.1.2",
"version": "12.1.5",
"description": "Simple and complete React DOM testing utilities that encourage good testing practices.",

@@ -18,2 +18,3 @@ "main": "dist/index.js",

"format": "kcd-scripts format",
"install:csb": "npm install",
"lint": "kcd-scripts lint",

@@ -49,7 +50,7 @@ "setup": "npm install && npm run validate -s",

"@babel/runtime": "^7.12.5",
"@testing-library/dom": "^8.0.0"
"@testing-library/dom": "^8.0.0",
"@types/react-dom": "<18.0.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.11.6",
"@types/react-dom": "^17.0.0",
"dotenv-cli": "^4.0.0",

@@ -64,4 +65,4 @@ "kcd-scripts": "^11.1.0",

"peerDependencies": {
"react": "*",
"react-dom": "*"
"react": "<18.0.0",
"react-dom": "<18.0.0"
},

@@ -68,0 +69,0 @@ "eslintConfig": {

@@ -17,5 +17,6 @@ // TypeScript Version: 3.8

Container extends Element | DocumentFragment = HTMLElement,
BaseElement extends Element | DocumentFragment = Container,
> = {
container: Container
baseElement: Element
baseElement: BaseElement
debug: (

@@ -37,2 +38,3 @@ baseElement?:

Container extends Element | DocumentFragment = HTMLElement,
BaseElement extends Element | DocumentFragment = Container,
> {

@@ -55,3 +57,3 @@ /**

*/
baseElement?: Element
baseElement?: BaseElement
/**

@@ -87,6 +89,7 @@ * If `hydrate` is set to `true`, then it will render with `ReactDOM.hydrate`. This may be useful if you are using server-side

Container extends Element | DocumentFragment = HTMLElement,
BaseElement extends Element | DocumentFragment = Container,
>(
ui: React.ReactElement,
options: RenderOptions<Q, Container>,
): RenderResult<Q, Container>
options: RenderOptions<Q, Container, BaseElement>,
): RenderResult<Q, Container, BaseElement>
export function render(

@@ -93,0 +96,0 @@ ui: React.ReactElement,

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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