@testing-library/react
Advanced tools
Comparing version 12.1.2 to 12.1.5
@@ -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
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
8
671
12
4480597
5
28096
+ Added@types/react-dom@<18.0.0
+ Added@types/prop-types@15.7.13(transitive)
+ Added@types/react@17.0.83(transitive)
+ Added@types/react-dom@17.0.25(transitive)
+ Added@types/scheduler@0.16.8(transitive)
+ Addedcsstype@3.1.3(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedreact@17.0.2(transitive)
+ Addedreact-dom@17.0.2(transitive)
+ Addedscheduler@0.20.2(transitive)
- Removedreact@18.3.1(transitive)
- Removedreact-dom@18.3.1(transitive)
- Removedscheduler@0.23.2(transitive)