- Fix backwards incompatible
shouldComponentUpdatecall (#491)
-
Support all Component Lifecycle methods in ShallowRenderer (behind an experimental flag) (#318)
-
Add an
isEmptyRender()method to bothShallowWrapperandReactWrapper(#339) -
Add support for batched updates with
ShallowRender.simulate(#342)
-
Switch to using classList instead of className (#448)
-
fixes mount().debug() output with mixed children (#476)
-
Support additional characters in attribute selectors (#412)
-
fix id selector not working when combined with a tag selector (#387)
-
Support spaces in attribute selector values (#427)
-
add
.tap()method toShallowWrapperandReactWrapper(#299) -
add
.key()method toShallowWrapperandReactWrapper(#327) -
add support for descendent selectors,
>,~and+(#217) -
new
containsMatchingElement,containsAllMatchingElements, andcontainsAnyMatchingElementsAPIs (#362) -
new
.name()method (#335)
-
add
dblclickto eventType map for simulate (#317) -
fix
pathToNodebug with child-containing children (#296) -
prioritize
displayNameovernamefor 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)
- add
optionsparam toShallowWrapper::shallow(#275)
-
make enzyme compatible with all React 15 RCs (#272)
-
increase coverage for Stateless Functional Components (#267)
-
improve context support for Stateless Functional Components (#256)
-
fix tree traversal for Stateless Functional Components (#257)
-
fix
.findfor nested Stateless Functional Components (#274) -
fix
.props()and.debug()methods for Stateless Functional Components (#255) -
prevent falsy nodes from being counted as children (#251)
-
add support for React 15.0.0-rc.1 (#240)
-
add
.unmount()method for ShallowWrapper (#215) -
add direct imports for
mount,shallow, andrender(#198) -
add a
.childAt(n)shorthand method (#187)
-
fix bug in .contains() for matching sub-arrays (#226)
-
fix bug in matching by type displayName (#230)
-
add more useful warnings for missing implicit dependencies (#228)
-
improve SFC support for
.type()(#196) -
fix null handling for
.html()and.render()(#196) -
moved from
underscoretolodash(#189)
-
removed
describeWithDOMutility (#159) -
removed
useSinon,spyPrototypeandspyLifecycleutilities (#159) -
removed
sinondependency (#159) -
removed
jsdomdependency (#159)
- add option for childContextTypes of
ReactWrapper(#171)
-
Prevent null or false nodes from being passed into tree traversal (#174)
-
setProps no longer swallows exceptions (#170)
-
.type()and.props()should not fail on null now (#162)
-
Add
attachTooption tomountto mount to a specific element (#160) -
Add
.debug()method toReactWrapper(#158) -
Add
.mount()and.unmount()APIs toReactWrapper(#155) -
Add
.render()method toReactWrapper(#156) -
Allow
.contains()to accept an array of nodes (#154) -
Add
.context()method toReactWrapperandShallowWrapper(#152)
-
Fixed some behavior with
.contains()matching on strings (#148) -
Fixed
.debug()'s output for numeric children (#149) -
Documentation fixes
-
Update versions of dependencies
-
describeWithDOMenhancement (#126) -
add
.equals()method toShallowWrapper(#124) -
add object selector syntax (#110)
-
Fixed confusing behavior of prop selector syntax (#130)
-
Documentation fixes
-
Added
.html()method toReactWrapper(#71) -
Support property selector (i.e.
[prop="foo"]) (#70) -
jsdom dependency now allows a range of supported versions (#95)
-
Normalized
setProps()behavior betweenmount/shallowto merge props (#103) -
Exclude
_bookfrom published package (#85) -
Various documentation, tests, and style changes
- Support for context (#62)
nodeHasIdfix for some 0.14 corner cases (#65)
- Support for Stateless Functional Components (#53)
- Tweak
describeWithDOMmessaging (#48) - Documentation Fixes
- Official Release!