Enzyme v2.3.0 Release Notes
Release Date: 2016-05-09 // almost 8 years ago-
Minor Changes
โ add
.tap()
method toShallowWrapper
andReactWrapper
(#299)โ add
.key()
method toShallowWrapper
andReactWrapper
(#327)โ add support for descendent selectors,
>
,~
and+
(#217)๐ new
containsMatchingElement
,containsAllMatchingElements
, andcontainsAnyMatchingElements
APIs (#362)๐ new
.name()
method (#335)
Patches
โ add
dblclick
to eventType map for simulate (#317)๐ fix
pathToNode
bug with child-containing children (#296)prioritize
displayName
overname
for consistency in.debug()
(#332)๐ handle insignificant whitespace in className (#348)
๐ fix handling of SFC components and
.instance()
(#359)โฌ๏ธ reduce false positives by using argument validation for
.contains
(#259)๐ fix equality algorithm so that non-renderable nodes are equivalent (#192)
โ add better error handling for
state
,setState
, andcontext
(#373)