Update dependency enzyme to v3.11.0 #4
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:
3.8.0->3.11.03.1.16->3.10.9Release Notes
airbnb/enzyme
v3.11.0Compare Source
New Stuff
render: handle Fiber strings and numbers (#2221)Fixes
shallow: Share child context logic betweenshallowanddive(#2296)mount:children: include text nodes ($2269)mount:invoke: use adapter’swrapInvokeif present (#2158)Docs
mount/shallow:closest/parent: Add missing arguments description (#2264)mount/shallow: fix pluralization of “exist” (#2262)shallow/mount:simulate: added functional component example to simulate doc (#2248)mount:debug: add missing verbose option flag (#2184)mount/shallow:update: fix semantics description (#2194)invoke: Add missing backticks to end of codeblock (#2160)invoke: Fix typo (#2167)Meta Stuff
fundingfieldis-boolean-object,is-callable,is-number-object,is-string,enzyme-shallow-equal,array.prototype.flat,function.prototype.name,html-element-map,is-regex,object-inspect,object-is,object.entries,object.vales,raf,string.prototype.trimeslint,eslint-plugin-import,eslint-plugin-markdown,eslint-plugin-react,safe-publish-latest,eslint-config-airbnb,rimraf,safe-publish-latest,karma-firefox-launcher,babel-preset-airbnb,glob-gitignore,semver,eslint-plugin-jsx-a11yv3.10.0Compare Source
New Stuff
shallowaddsuspenseFallbackoption; supportSuspense/Lazy(#1975)shallow/mount: addinvoke(propName)(...args)(#1856, #945)shallow: Support rendering anddive()ingcreateContext()providers and consumers (#1966)mount/shallow: addgetWrappingComponent(#1960)Utils: addisCustomComponent(#1960)Utils: addstubargument tospyMethodEnzymeAdapter: addmatchesElementType(#2146)RSTTraversal: addgetHTMLFromHostNodesFixes
selectors: unwrapmemoelements - in both directions (#2146)shallow: properly determine "should render" forPureComponents (#2096)mount/shallow:renderProp: improve error messages (#2070)mount:setContext: use proper wrapper name in error messageshallow:.contains(): clean up error messageshallow/mount:hasClass: avoid a crash with a non-string argument (#2057)mount: properly handle HTML of multiple nodes (#2052)shallow: ensure that if gDSFP exists, cDU is called. (#2027)shallow: Mock sCU if gDSFP defined in shallow renderer rerender (#1981)mount:.state(): allow getting state from stateful children of a stateless root (#2043)mount:.text(): properly recurse through fragments and arrays (#2028)Refactors
ReactWrapper/ShallowWrapper: ensure calling an adapter‘s nodeToElement preserves the receivermount: usegetHTMLFromHostNodesDocs
shallow: fix childAt (#2134)debug: Added documentation forverboseflag (#2104)reduce/reduceRight: fix example code (#2066, #2065, #2064)simulateErrorwithgetDerivedStateFromError(#2036)shallow:.hasClass: fix use ofmountjest: Update deprecated jest config key (#2024)v3.9.0Compare Source
New Stuff
shallow:isEmptyRender: allow on multiple elements (#1924)mount: support:focusselector (#1965)shallow: SupportgetChildContext()(#1971)shallow/mount:.find: find HTML elements by their constructor (#1933)shallow/mount:selectors: support universal selector (#1945)mount/shallow: add regex support to.hasClass(#1987)Fixes
mount/shallow:.text/.html: handle an array of nodes properly (#2001)shallow:.setProps(): only call cDU once (#2007)mount: ensurefindWheredoesn‘t abort early on an empty string (#1995)mount:findWhere: avoid passing empty wrappers to predicatemount:text()viafindWhere: return the string for a wrapper around a stringmount/shallow: Fix .exists not accepting any EnzymeSelector (#1934)mount: RecursiveisEmptyRender(#1924)mount:setState: allow setting state on a class child of an SFC rootDocumentation
setupTestFrameworkScriptFiletosetupFilesAfterEnv(#2013)mount:setState: note that you can now call it on "not the root" (#2010)isEmptyRender,renderProp,equals, SystemJS guide (#1984, #1985)Meta Stuff
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 you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by WhiteSource Renovate. View repository job log here.