Changelog
*Sourced from [enzyme's changelog](https://github.com/airbnb/enzyme/blob/master/CHANGELOG.md).*
> ## 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))
>
> ### Fixes
> - `mount`/`shallow`: `.text`/`.html`: handle an array of nodes properly ([#2001](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2001))
> - `shallow`: `.setProps()`: only call cDU once ([#2007](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2007))
> - `mount`: ensure `findWhere` doesn‘t abort early on an empty string ([#1995](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1995))
> - `mount`: `findWhere`: avoid passing empty wrappers to predicate
> - `mount`: `text()` via `findWhere`: return the string for a wrapper around a string
> - `mount`/`shallow`: Fix .exists not accepting any EnzymeSelector ([#1934](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1934))
> - `mount`: Recursive `isEmptyRender` ([#1924](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1924))
> - `mount`: `setState`: allow setting state on a class child of an SFC root
>
> ### Documentation
> - [jest] update Jest to setupFilesAfterEnv ([#2015](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2015))
> - [jest] Change deprecated `setupTestFrameworkScriptFile` to `setupFilesAfterEnv` ([#2013](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2013))
> - `mount`: `setState`: note that you can now call it on "not the root" ([#2010](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2010))
> - general improvements ([#1947](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1947))
> - Fix typos ([#1992](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1992))
> - Added missing pages: `isEmptyRender`, `renderProp`, `equals`, SystemJS guide ([#1984](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1984), [#1985](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1985))
> - Fix link to .shallow() ([#1951](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1951))
> - update jsdoc to use "EnzymeSelector" where applicable
>
> ### Meta Stuff
> - add "directory" field to package.json
Commits
- [`ad00682`](https://github.com/airbnb/enzyme/commit/ad006829e05c3246c0616217ed6fb70778326c8b) [enzyme] v3.9.0
- [`900beff`](https://github.com/airbnb/enzyme/commit/900beff14ad7d9d56bb2560f3abe64edd94ee2ae) [*] [meta] add "directory" field to package.json
- [`f6689c5`](https://github.com/airbnb/enzyme/commit/f6689c5f73a2445c07c6480a02a1f7bec8671b2b) docs: update Jest to setupFilesAfterEnv
- [`f5798eb`](https://github.com/airbnb/enzyme/commit/f5798ebea962c7215025b5366ac8f1ad7a3610e9) [Tests] `react-compat`: add some more react exports
- [`b4efaad`](https://github.com/airbnb/enzyme/commit/b4efaad8409fb4cea4853b18343020980588e329) [docs] [jest] Change deprecated `setupTestFrameworkScriptFile` to `setupFiles...
- [`f4bb661`](https://github.com/airbnb/enzyme/commit/f4bb6612d75c590044ff7a69dc189cb7d67ce47a) [Docs] `mount`: `setState`: note that you can now call it on "not the root"
- [`375dbd1`](https://github.com/airbnb/enzyme/commit/375dbd1926b7d72a2c80bdcfd3c041824f79ef82) [enzyme-adapter-react-{16,16.3}] [refactor] use `displayNameOfNode` instead o...
- [`89df015`](https://github.com/airbnb/enzyme/commit/89df015c0ccdf3988215c375ab142b0a4de2757c) [Fix] `shallow`: `.setProps()`: only call cDU once
- [`ba712ac`](https://github.com/airbnb/enzyme/commit/ba712acf506b80c2fbd1036b080a88573b27d3f6) [Tests] on React `v16.8`
- [`ed58480`](https://github.com/airbnb/enzyme/commit/ed5848085051ac7afef64a7d045d53b1153a8fe7) [enzyme-adapter-react-16] v1.9.1
- Additional commits viewable in [compare view](https://github.com/airbnb/enzyme/compare/enzyme@3.8.0...enzyme@3.9.0)
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
- `@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.9.0.
Changelog
*Sourced from [enzyme's changelog](https://github.com/airbnb/enzyme/blob/master/CHANGELOG.md).* > ## 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)) > > ### Fixes > - `mount`/`shallow`: `.text`/`.html`: handle an array of nodes properly ([#2001](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2001)) > - `shallow`: `.setProps()`: only call cDU once ([#2007](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2007)) > - `mount`: ensure `findWhere` doesn‘t abort early on an empty string ([#1995](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1995)) > - `mount`: `findWhere`: avoid passing empty wrappers to predicate > - `mount`: `text()` via `findWhere`: return the string for a wrapper around a string > - `mount`/`shallow`: Fix .exists not accepting any EnzymeSelector ([#1934](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1934)) > - `mount`: Recursive `isEmptyRender` ([#1924](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1924)) > - `mount`: `setState`: allow setting state on a class child of an SFC root > > ### Documentation > - [jest] update Jest to setupFilesAfterEnv ([#2015](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2015)) > - [jest] Change deprecated `setupTestFrameworkScriptFile` to `setupFilesAfterEnv` ([#2013](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2013)) > - `mount`: `setState`: note that you can now call it on "not the root" ([#2010](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/2010)) > - general improvements ([#1947](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1947)) > - Fix typos ([#1992](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1992)) > - Added missing pages: `isEmptyRender`, `renderProp`, `equals`, SystemJS guide ([#1984](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1984), [#1985](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1985)) > - Fix link to .shallow() ([#1951](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme/issues/1951)) > - update jsdoc to use "EnzymeSelector" where applicable > > ### Meta Stuff > - add "directory" field to package.jsonCommits
- [`ad00682`](https://github.com/airbnb/enzyme/commit/ad006829e05c3246c0616217ed6fb70778326c8b) [enzyme] v3.9.0 - [`900beff`](https://github.com/airbnb/enzyme/commit/900beff14ad7d9d56bb2560f3abe64edd94ee2ae) [*] [meta] add "directory" field to package.json - [`f6689c5`](https://github.com/airbnb/enzyme/commit/f6689c5f73a2445c07c6480a02a1f7bec8671b2b) docs: update Jest to setupFilesAfterEnv - [`f5798eb`](https://github.com/airbnb/enzyme/commit/f5798ebea962c7215025b5366ac8f1ad7a3610e9) [Tests] `react-compat`: add some more react exports - [`b4efaad`](https://github.com/airbnb/enzyme/commit/b4efaad8409fb4cea4853b18343020980588e329) [docs] [jest] Change deprecated `setupTestFrameworkScriptFile` to `setupFiles... - [`f4bb661`](https://github.com/airbnb/enzyme/commit/f4bb6612d75c590044ff7a69dc189cb7d67ce47a) [Docs] `mount`: `setState`: note that you can now call it on "not the root" - [`375dbd1`](https://github.com/airbnb/enzyme/commit/375dbd1926b7d72a2c80bdcfd3c041824f79ef82) [enzyme-adapter-react-{16,16.3}] [refactor] use `displayNameOfNode` instead o... - [`89df015`](https://github.com/airbnb/enzyme/commit/89df015c0ccdf3988215c375ab142b0a4de2757c) [Fix] `shallow`: `.setProps()`: only call cDU once - [`ba712ac`](https://github.com/airbnb/enzyme/commit/ba712acf506b80c2fbd1036b080a88573b27d3f6) [Tests] on React `v16.8` - [`ed58480`](https://github.com/airbnb/enzyme/commit/ed5848085051ac7afef64a7d045d53b1153a8fe7) [enzyme-adapter-react-16] v1.9.1 - Additional commits viewable in [compare view](https://github.com/airbnb/enzyme/compare/enzyme@3.8.0...enzyme@3.9.0)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 - `@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.