Update dependency enzyme to v3 - autoclosed #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.8.2
->^3.0.0
Release Notes
airbnb/enzyme
v3.8.0
Compare Source
New Stuff
shallow
/mount
: addrenderProp
(#1863, #1891)Fixes
shallow
/mount
: improve error message for "single node" assertion (#1904)shallow
: shallow compare, not deep compare, state and props to determine rerendering (#1915)Docs
shallow
:dive
: add a note about throwing an error (#1905)selectors: update re
displayName` (#1932)shallow
:get
: fixed wrongprops()
usage (#1921)shallow
:html
: shallow renders full tree (#1912)prop
: fix typo (#1883)mount
:ref
: use correct type (#1865)v3.7.0
Compare Source
New Stuff
mount
:.state()
/.setState()
: allow calling on children (#1802, @ljharb)configuration
: addreset
(commit)Fixes
makeOptions
: ensure that config-levelattachTo
/hydrateIn
are inherited into wrapper options (#1836, @ljharb)shallow
/Utils
: call into adapter’sisCustomComponentElement
if present (#1832, @SinHouse)shallow
/mount
: throw an explicit error when state is null/undefined (commit)ROOT_NODES
for child wrappers (#1811, @jgzuke)shallow
:.parents
: ensure that one.find
call does not affect another (#1781, @ljharb)mount
: update aftersimulateError
(#1812, @jgzuke)Refactors
mount
/shallow
:getElement
: usethis.single
(commit)v3.6.0
Compare Source
New Stuff
shallow
/mount
: addsimulateError
(#1797, @ljharb)v3.5.1
Compare Source
Fixes
shallow
/mount
:containsMatchingElement
: trim whitespace (commit, #636)debug
: inspect objects instead of showing them as<Component />
(commit)Documentation
mount
:ref
: Update docs to be consistent with v3 (#1242, @adam-golab)Refactors
shallow
/mount
: make tests and method ordering more consistent (commit)adapter
truthiness check (commit)v3.5.0
Compare Source
New Stuff
Fixes
shallow
: prevent rerenders with PureComponents (#1786, @koba04)shallow
: skip updates when nextState isnull
orundefined
(#1785, @koba04)shallow
:setState
aftersetProps
callscomponentWillReceiveProps
(#1779, @peanutenthusiast)mount
/shallow
: be stricter on the wrapper’s setState/setProps callback (commit)shallow
/mount
: improve error message when wrapping invalid elements (#1759, @jgzuke)Refactors
Meta Stuff
v3.4.4
Compare Source
Fixes
shallow
: fix unexpected call to componentDidMount (#1768)v3.4.3
Compare Source
Fixes
shallow
:.setState()
: stub outsetState
on non-root code paths as well (#1763)shallow
/mount
: restore fallback when adapter lacksinvokeSetStateCallback
(commit)mount
:setState
: invoke callback with the proper receiver (commit)mount
:state
andsetState
should throw an explicit error message when called on an SFC (commit)v3.4.2
Compare Source
Fixes
shallow
: call cDU when an instance calls setState (#1742)selectors
: fix descendant selector (#1680)v3.4.1
Compare Source
Fixes
shallow
:setProps
: merge instead of replace props (commit)Documentation
v3.4.0
Compare Source
New Stuff
shallow
/mount
: account for React.Fragment nodes (#1733)debugNode
now returns[function]
for function children (commit)mount
: addhydrateIn
option (#1707)shallow
: add “lifecycles” adapter option (#1696)shallow
/mount
: allow.exists()
to take an optional selector (#1695)shallow
: Add getSnapshotBeforeUpdate support (#1657)shallow
/mount
: Add support for some pseudo selectors (#1537)debug
: Implement verbose debug output (#1547)Debug
:typeName
now calls the adapter’sdisplayNameOfNode
if available (#1701)mount
/shallow
:.name()
: call into adapter’sdisplayNameOfNode
, if present (#1701)Utils
:nodeHasType
: call into adapter’sdisplayNameOfNode
, if present (#1701)selectors
:buildPredicate
: call into adapter’sisValidElementType
, if present (#1701)shallow
:setProps()
: Add callback argument (#1721)mount
: add.equals()
(commit)getAdapter
fromUtils
into its own file (#1732)Fixes
shallow
/mount
:matchesElement
/containsMatchingElement
: get adapter with options (commit)RSTTraversal
: removenodeHasProperty
export; broken since #1157 (commit)shallow
:.at()
: return an empty wrapper when an index does not exist (#1478)shallow
:.equals()
: flatten children when comparing (commit)mount
/shallow
: do not dedupe in flatMap (commit)shallow
:.closest()
: ensure an empty wrapper is returned for no match (commit)selectors
: make general sibling not throw on root (#1698)mount
:text()
: null nodes return null (#1582)shallow
:simulate
: ensure it returns itself (commit)shallow
: ShallowWrapper calls update() automatically (#1499)mount
/shallow
: return null for missing keys (#1536)setState
callback after finishing the render (#1453)shallow
/mount
: default iterator should be iterable (commit)Refactors
selectors
: fix typos; avoid reusing variable unnecessarily (#1681)shallow
: UsespyMethod
to inspect the result ofshouldComponentUpdate
/getSnapshotBeforeUpdate
(#1192)Utils
:configuration
: change to named exports. (commit)array.prototype.flat
(commit)Documentation
ref(refName)
(#1470)shallow
/mount
: Add callback arg to setProps header (#1361)mount
: Updated docs for ReactWrapper.instance(); remove docs for v2'sgetNode()
/getNodes()
(#1714)Meta Stuff
v3.3.0
Compare Source
New Stuff
debug
: handle boxed primitives (#1450)Refactors
Fixes
v3.2.0
Compare Source
New Stuff
Fixes
v3.1.1
Compare Source
Fixes
v3.1.0
Compare Source
New Stuff
Fixes
@lelandrichardson: Add an npmignore file to all packages (#1204)
@neoziro: Fix node resolving in React 16 adapter (#100)
@graingert: upgrade to rst-selector-parser@^2.2.2 (#1146)
Documentation
@lelandrichardson: Symlink readme to all packages (#1205)
@AndersDJohnson: fix some typos (#1165)
@dubbha: ES5 setup file correction (#1194)
@morrowr08: updated component name being used in example (#1180)
@apandichi: Fixing a few typos... (#1171)
@nuc: Fix typo (#1142)
v3.0.0
Compare Source
Breaking Changes
Enzyme has several breaking changes from v2 to v3. Please check out our migration guide for more info. Since there was a rewrite of the core
library from v2 to v3, it is hard to categorize changes in terms of sem
@lelandrichardson: Refactor enzyme to use Adapters, initial React 16 support (#1007)
@lelandrichardson: Make private properties more private and harder to use (#1083)
@ljharb: [breaking] update
cheerio
to v1 (#1093)@aweary: Integrate with a CSS parser for selector parsing (#1086)
@vadimdemedes: Skip undefined props when comparing nodes (#662)
@koba04: Breaking: lifecycleExperimental by default (#1140)
New Stuff
@lelandrichardson: Move to lerna repo structure, multiple modules (#1074)
@lelandrichardson: Remove all React dependencies from enzyme (#1084)
@lelandrichardson: Add public root method (#1127)
Fixes
@aweary: Remove isFunctionalComponent, use nodeType instead (#1076)
@LarsHassler: props not merged when shallow rendering in lifecycleExperimental (#1088)
@ljharb: [Fix]
mount
: do not mutateComponent.contextTypes
(#1099)@ljharb: [Fix]
reduce
/reduceRight
: followArray#reduce
when omitting initialValue (#673)@koba04: Fix componentDidUpdate when updating by setState on v16 (#1133)
@koba04: Fix componentDidUpdate no longer receives prevContext on React v16 (#1139)
Documentation
@ghost: added sinon to mocha guide (#1075)
@samit4me: Update to GitBook 3 (#1039)
@therewillbecode: Removed extraneous brackets from example in readme (#1117)
@silvenon: Add note that mount() requires cleanup (#1043)
@lelandrichardson: Add docs reflecting v3 (#1121)
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.