Changelog
*Sourced from [enzyme's changelog](https://github.com/airbnb/enzyme/blob/master/CHANGELOG.md).*
> ## 3.10.0
>
> ### New Stuff
> - `shallow` add `suspenseFallback` option; support `Suspense`/`Lazy` ([#1975](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1975))
> - `shallow`/`mount`: add `invoke(propName)(...args)` ([#1856](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1856), [#945](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/945))
> - `shallow`: Support rendering and `dive()`ing `createContext()` providers and consumers ([#1966](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1966))
> - `mount`/`shallow`: add `getWrappingComponent` ([#1960](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1960))
> - `Utils`: add `isCustomComponent` ([#1960](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1960))
> - `Utils`: add `stub` argument to `spyMethod`
> - `EnzymeAdapter`: add `matchesElementType` ([#2146](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2146))
> - `RSTTraversal`: add `getHTMLFromHostNodes`
>
> ### Fixes
> - `selectors`: unwrap `memo` elements - in both directions ([#2146](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2146))
> - `shallow`: properly determine "should render" for `PureComponent`s ([#2096](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2096))
> - `mount`/`shallow`: `renderProp`: improve error messages ([#2070](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2070))
> - `mount`: `setContext`: use proper wrapper name in error message
> - `shallow`: `.contains()`: clean up error message
> - `shallow`/`mount`: `hasClass`: avoid a crash with a non-string argument ([#2057](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2057))
> - `mount`: properly handle HTML of multiple nodes ([#2052](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2052))
> - `shallow`: ensure that if gDSFP exists, cDU is called. ([#2027](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2027))
> - `shallow`: Mock sCU if gDSFP defined in shallow renderer rerender ([#1981](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1981))
> - `mount`: `.state()`: allow getting state from stateful children of a stateless root ([#2043](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2043))
> - `mount`: `.text()`: properly recurse through fragments and arrays ([#2028](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2028))
>
> ### Refactors
> - `ReactWrapper`/`ShallowWrapper`: ensure calling an adapter‘s nodeToElement preserves the receiver
> - `mount`: use `getHTMLFromHostNodes`
>
> ### Docs
> - explain why need to re-call .find() after update ([#2140](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2140))
> - `shallow`: fix childAt ([#2134](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2134))
> - Update v2 -> v3 migration guide re props after a stage change ([#1300](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1300))
> - `debug`: Added documentation for `verbose` flag ([#2104](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2104))
> - Add on the fly JSDOM include example ([#2072](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2072))
> - `reduce`/`reduceRight`: fix example code ([#2066](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2066), [#2065](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2065), [#2064](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2064))
> - update `simulateError` with `getDerivedStateFromError` ([#2036](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2036))
> - `shallow`: `.hasClass`: fix use of `mount`
> - add link to Cheerio API and another example ([#756](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/756))
> - `jest`: Update deprecated jest config key ([#2024](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2024))
>
> ## 3.9.0
>
> ### New Stuff
> - `shallow`: `isEmptyRender`: allow on multiple elements ([#1924](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1924))
> - `mount`: support `:focus` selector ([#1965](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1965))
> - `shallow`: Support `getChildContext()` ([#1971](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1971))
> - `shallow`/`mount`: `.find`: find HTML elements by their constructor ([#1933](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1933))
> - `shallow`/`mount`: `selectors`: support universal selector ([#1945](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1945))
> - `mount`/`shallow`: add regex support to `.hasClass` ([#1987](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1987))
> ... (truncated)
Commits
- [`5127331`](https://github.com/airbnb/enzyme/commit/51273315f27968baac65eeb71c579527d4fc7be9) [enzyme] v3.10.0
- [`ddb0627`](https://github.com/airbnb/enzyme/commit/ddb06277771b82919b76e2d46582533522ab1bbd) [Fix] `selectors`: unwrap `memo` elements - in both directions.
- [`7986308`](https://github.com/airbnb/enzyme/commit/7986308fc3130a734e1706a36380f5ba5d3acc6c) [Refactor] `ReactWrapper`/`ShallowWrapper`: ensure calling an adapter‘s nodeT...
- [`65881b2`](https://github.com/airbnb/enzyme/commit/65881b28b7d20447922f4ca85434f2175d10b2cb) [enzyme, enzyme-adapter-react-16] [new] add `matchesElementType`
- [`d397a55`](https://github.com/airbnb/enzyme/commit/d397a55cca2ea589848b53f2071e847f76d91e5b) [*] [dev deps] update `eslint-plugin-import`
- [`b37fc29`](https://github.com/airbnb/enzyme/commit/b37fc295f7958e36aa1d1b0505d49f6e31b42d15) [Fix] `shallow`: properly determine "should render" for `PureComponent`s
- [`464c6cb`](https://github.com/airbnb/enzyme/commit/464c6cbeb93028983e7e80b38b3920e00fbdf3e1) [*] [dev deps] update `eslint-plugin-react`, `eslint-plugin-import`
- [`d3d2259`](https://github.com/airbnb/enzyme/commit/d3d2259304aa52a204fd778b7a3ff416a9da44dc) [New] `shallow`/`mount`: add `invoke(propName)(...args)`
- [`60ea652`](https://github.com/airbnb/enzyme/commit/60ea65245d288d4eb5fcb6fec286e4f0e826c07f) Revert "[New] `shallow`: Add `invoke(eventName, ...args)`"
- [`258823f`](https://github.com/airbnb/enzyme/commit/258823f1f55ebe66df102dded7d2601e2b22b3f4) [New] `shallow`: Add `invoke(eventName, ...args)`
- Additional commits viewable in [compare view](https://github.com/airbnb/enzyme/commits/enzyme@3.10.0/packages/enzyme)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Finally, you can contact us by mentioning @dependabot.
Bumps enzyme from 3.8.0 to 3.10.0.
Changelog
*Sourced from [enzyme's changelog](https://github.com/airbnb/enzyme/blob/master/CHANGELOG.md).* > ## 3.10.0 > > ### New Stuff > - `shallow` add `suspenseFallback` option; support `Suspense`/`Lazy` ([#1975](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1975)) > - `shallow`/`mount`: add `invoke(propName)(...args)` ([#1856](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1856), [#945](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/945)) > - `shallow`: Support rendering and `dive()`ing `createContext()` providers and consumers ([#1966](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1966)) > - `mount`/`shallow`: add `getWrappingComponent` ([#1960](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1960)) > - `Utils`: add `isCustomComponent` ([#1960](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1960)) > - `Utils`: add `stub` argument to `spyMethod` > - `EnzymeAdapter`: add `matchesElementType` ([#2146](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2146)) > - `RSTTraversal`: add `getHTMLFromHostNodes` > > ### Fixes > - `selectors`: unwrap `memo` elements - in both directions ([#2146](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2146)) > - `shallow`: properly determine "should render" for `PureComponent`s ([#2096](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2096)) > - `mount`/`shallow`: `renderProp`: improve error messages ([#2070](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2070)) > - `mount`: `setContext`: use proper wrapper name in error message > - `shallow`: `.contains()`: clean up error message > - `shallow`/`mount`: `hasClass`: avoid a crash with a non-string argument ([#2057](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2057)) > - `mount`: properly handle HTML of multiple nodes ([#2052](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2052)) > - `shallow`: ensure that if gDSFP exists, cDU is called. ([#2027](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2027)) > - `shallow`: Mock sCU if gDSFP defined in shallow renderer rerender ([#1981](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1981)) > - `mount`: `.state()`: allow getting state from stateful children of a stateless root ([#2043](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2043)) > - `mount`: `.text()`: properly recurse through fragments and arrays ([#2028](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2028)) > > ### Refactors > - `ReactWrapper`/`ShallowWrapper`: ensure calling an adapter‘s nodeToElement preserves the receiver > - `mount`: use `getHTMLFromHostNodes` > > ### Docs > - explain why need to re-call .find() after update ([#2140](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2140)) > - `shallow`: fix childAt ([#2134](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2134)) > - Update v2 -> v3 migration guide re props after a stage change ([#1300](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1300)) > - `debug`: Added documentation for `verbose` flag ([#2104](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2104)) > - Add on the fly JSDOM include example ([#2072](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2072)) > - `reduce`/`reduceRight`: fix example code ([#2066](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2066), [#2065](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2065), [#2064](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2064)) > - update `simulateError` with `getDerivedStateFromError` ([#2036](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2036)) > - `shallow`: `.hasClass`: fix use of `mount` > - add link to Cheerio API and another example ([#756](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/756)) > - `jest`: Update deprecated jest config key ([#2024](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2024)) > > ## 3.9.0 > > ### New Stuff > - `shallow`: `isEmptyRender`: allow on multiple elements ([#1924](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1924)) > - `mount`: support `:focus` selector ([#1965](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1965)) > - `shallow`: Support `getChildContext()` ([#1971](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1971)) > - `shallow`/`mount`: `.find`: find HTML elements by their constructor ([#1933](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1933)) > - `shallow`/`mount`: `selectors`: support universal selector ([#1945](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1945)) > - `mount`/`shallow`: add regex support to `.hasClass` ([#1987](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1987)) > ... (truncated)Commits
- [`5127331`](https://github.com/airbnb/enzyme/commit/51273315f27968baac65eeb71c579527d4fc7be9) [enzyme] v3.10.0 - [`ddb0627`](https://github.com/airbnb/enzyme/commit/ddb06277771b82919b76e2d46582533522ab1bbd) [Fix] `selectors`: unwrap `memo` elements - in both directions. - [`7986308`](https://github.com/airbnb/enzyme/commit/7986308fc3130a734e1706a36380f5ba5d3acc6c) [Refactor] `ReactWrapper`/`ShallowWrapper`: ensure calling an adapter‘s nodeT... - [`65881b2`](https://github.com/airbnb/enzyme/commit/65881b28b7d20447922f4ca85434f2175d10b2cb) [enzyme, enzyme-adapter-react-16] [new] add `matchesElementType` - [`d397a55`](https://github.com/airbnb/enzyme/commit/d397a55cca2ea589848b53f2071e847f76d91e5b) [*] [dev deps] update `eslint-plugin-import` - [`b37fc29`](https://github.com/airbnb/enzyme/commit/b37fc295f7958e36aa1d1b0505d49f6e31b42d15) [Fix] `shallow`: properly determine "should render" for `PureComponent`s - [`464c6cb`](https://github.com/airbnb/enzyme/commit/464c6cbeb93028983e7e80b38b3920e00fbdf3e1) [*] [dev deps] update `eslint-plugin-react`, `eslint-plugin-import` - [`d3d2259`](https://github.com/airbnb/enzyme/commit/d3d2259304aa52a204fd778b7a3ff416a9da44dc) [New] `shallow`/`mount`: add `invoke(propName)(...args)` - [`60ea652`](https://github.com/airbnb/enzyme/commit/60ea65245d288d4eb5fcb6fec286e4f0e826c07f) Revert "[New] `shallow`: Add `invoke(eventName, ...args)`" - [`258823f`](https://github.com/airbnb/enzyme/commit/258823f1f55ebe66df102dded7d2601e2b22b3f4) [New] `shallow`: Add `invoke(eventName, ...args)` - Additional commits viewable in [compare view](https://github.com/airbnb/enzyme/commits/enzyme@3.10.0/packages/enzyme)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.