File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ 1.0.0 / Unreleased
2+ ==================
3+
4+ * [ feature] Add support for enzyme ^3.0.0 (which implies React 16 support)
5+ * [ feature] Support an array of nodes in ` contain `
6+ * [ breaking] If you are using cheerio 1.0, there's' a possibility you will have
7+ to wrap your React components with a div wrapper.
8+
9+ ``` jsx
10+ < div id= ' parent' >
11+ < div id= ' child' / >
12+ < div>
13+ ```
14+
15+ ``` js
16+ // Enzyme 2
17+ wrapper .find (' #parent' ).length // => 1
18+ wrapper .is (' #parent' ) // => false
19+
20+ // Enzyme 3
21+ wrapper .find (' #parent' ).length // => 0
22+ wrapper .is (' #parent' ) // => true
23+ ```
24+
25+ The new version returns a cheerio wrapper with a type of tag that IS the parent element.
26+ Before it returned a wrapper with a type root that contains the parent element.
27+
1280.8.0 / June 29 2017
229===================
330
You can’t perform that action at this time.
0 commit comments