This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
Update enzyme in /modules/frontend from 3.3.0 to 3.6.0 #265
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.
Dependencies.io has updated
enzyme
(a npm dependency in/modules/frontend
) from "3.3.0" to "3.6.0".3.6.0
New Stuff
shallow
/mount
: addsimulateError
(#1797)3.5.1
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)Refactors
shallow
/mount
: make tests and method ordering more consistent (commit)adapter
truthiness check (commit)3.5.0
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
3.4.4
Fixes
shallow
: fix unexpected call to componentDidMount (#1768)3.4.3
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)3.4.2
Fixes
shallow
: call cDU when an instance calls setState (#1742)selectors
: fix descendant selector (#1680)3.4.1
Fixes
shallow
:setProps
: merge instead of replace props (commit)Documentation
3.4.0
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