Skip to content

Commit 8c8840e

Browse files
committed
[enzyme] v3.7.0
- [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`
1 parent 7ad6910 commit 8c8840e

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

CHANGELOG.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
11
# Change Log
22

3+
## 3.7.0
4+
5+
### New Stuff
6+
- `mount`: `.state()`/`.setState()`: allow calling on children ([#1802](https://github.com/airbnb/enzyme/pull/1802), @ljharb)
7+
- `configuration`: add `reset` ([commit](https://github.com/airbnb/enzyme/commit/d91d95b8da8900c8f4b7090d2256422a82398ca9))
8+
9+
### Fixes
10+
- `makeOptions`: ensure that config-level `attachTo`/`hydrateIn` are inherited into wrapper options ([#1836](https://github.com/airbnb/enzyme/issues/1836), @ljharb)
11+
- `shallow`/`Utils`: call into adapter’s `isCustomComponentElement` if present ([#1832](https://github.com/airbnb/enzyme/pull/1832), @SinHouse)
12+
- `shallow`/`mount`: throw an explicit error when state is null/undefined ([commit](https://github.com/airbnb/enzyme/commit/9ea33d7667a93885d6f1d6e12b0c2661d6d47cd1))
13+
- freeze `ROOT_NODES` for child wrappers ([#1811](https://github.com/airbnb/enzyme/pull/1811), @jgzuke)
14+
- `shallow`: `.parents`: ensure that one `.find` call does not affect another ([#1781](https://github.com/airbnb/enzyme/pull/1781), @ljharb)
15+
- `mount`: update after `simulateError` ([#1812](https://github.com/airbnb/enzyme/pull/1812), @jgzuke)
16+
17+
### Refactors
18+
- `mount`/`shallow`: `getElement`: use `this.single` ([commit](https://github.com/airbnb/enzyme/commit/6b63db3b002a419076c82d34554916400ef392fa))
19+
320
## 3.6.0
421

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

825
## 3.5.1
926

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

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

1734
### Refactors
1835
- `shallow`/`mount`: make tests and method ordering more consistent ([commit](https://github.com/airbnb/enzyme/commit/d0fccaf))

packages/enzyme/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "enzyme",
3-
"version": "3.6.0",
3+
"version": "3.7.0",
44
"description": "JavaScript Testing utilities for React",
55
"homepage": "http://airbnb.io/enzyme/",
66
"main": "build",

0 commit comments

Comments
 (0)