Skip to content

Commit

Permalink
[enzyme] v3.7.0
Browse files Browse the repository at this point in the history
 - [new] `mount`: `.state()`/`.setState()`: allow calling on children (#1802)
 - [new] `configuration`: add `reset`
 - [fix] `makeOptions`: ensure that config-level `attachTo`/`hydrateIn` are inherited into wrapper options (#1836)
 - [fix] `shallow`/`Utils`: call into adapter’s `isCustomComponentElement` if present (#1832)
 - [fix] `shallow`/`mount`: throw an explicit error when state is null/undefined
 - [fix] freeze ROOT_NODES for child wrappers (#1811)
 - [fix] `shallow`: `.parents`: ensure that one `.find` call does not affect another (#1781)
 - [fix] `mount`: update after `simulateError` (#1812)
 - [refactor] `mount`/`shallow`: `getElement`: use `this.single`
 - [deps] update `babel-preset-airbnb`, `chai`, `eslint`, `mocha`, `enzyme-adapter-utils`, `react-is`, `airbnb-js-shims`
  • Loading branch information
ljharb committed Oct 5, 2018
1 parent 7ad6910 commit 8c8840e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
21 changes: 19 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
# Change Log

## 3.7.0

### New Stuff
- `mount`: `.state()`/`.setState()`: allow calling on children ([#1802](https://github.com/airbnb/enzyme/pull/1802), @ljharb)
- `configuration`: add `reset` ([commit](https://github.com/airbnb/enzyme/commit/d91d95b8da8900c8f4b7090d2256422a82398ca9))

### Fixes
- `makeOptions`: ensure that config-level `attachTo`/`hydrateIn` are inherited into wrapper options ([#1836](https://github.com/airbnb/enzyme/issues/1836), @ljharb)
- `shallow`/`Utils`: call into adapter’s `isCustomComponentElement` if present ([#1832](https://github.com/airbnb/enzyme/pull/1832), @SinHouse)
- `shallow`/`mount`: throw an explicit error when state is null/undefined ([commit](https://github.com/airbnb/enzyme/commit/9ea33d7667a93885d6f1d6e12b0c2661d6d47cd1))
- freeze `ROOT_NODES` for child wrappers ([#1811](https://github.com/airbnb/enzyme/pull/1811), @jgzuke)
- `shallow`: `.parents`: ensure that one `.find` call does not affect another ([#1781](https://github.com/airbnb/enzyme/pull/1781), @ljharb)
- `mount`: update after `simulateError` ([#1812](https://github.com/airbnb/enzyme/pull/1812), @jgzuke)

### Refactors
- `mount`/`shallow`: `getElement`: use `this.single` ([commit](https://github.com/airbnb/enzyme/commit/6b63db3b002a419076c82d34554916400ef392fa))

## 3.6.0

### New Stuff
- `shallow`/`mount`: add `simulateError` ([#1797](https://github.com/airbnb/enzyme/pull/1797))
- `shallow`/`mount`: add `simulateError` ([#1797](https://github.com/airbnb/enzyme/pull/1797), @ljharb)

## 3.5.1

Expand All @@ -12,7 +29,7 @@
- `debug`: inspect objects instead of showing them as `<Component />` ([commit](https://github.com/airbnb/enzyme/commit/a7b6e78))

### Documentation
- `mount`: `ref`: Update docs to be consistent with v3 ([#1242](https://github.com/airbnb/enzyme/pull/1242))
- `mount`: `ref`: Update docs to be consistent with v3 ([#1242](https://github.com/airbnb/enzyme/pull/1242), @adam-golab)

### Refactors
- `shallow`/`mount`: make tests and method ordering more consistent ([commit](https://github.com/airbnb/enzyme/commit/d0fccaf))
Expand Down
2 changes: 1 addition & 1 deletion packages/enzyme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "enzyme",
"version": "3.6.0",
"version": "3.7.0",
"description": "JavaScript Testing utilities for React",
"homepage": "http://airbnb.io/enzyme/",
"main": "build",
Expand Down

0 comments on commit 8c8840e

Please sign in to comment.