Multiple dive calls reduxForms
- Dominant language
- JavaScript
- Stars
- 19.8k
- Forks
- 2k
- PR merge metrics
- No merged PRs in 30d
Description
### Current behavior
`dive()` needs to be called 4 times in order to access the same methods normally used with `dive()`
e.g.
```javascript
const wrapper = shallow(component, {context: {store: mockStore(initalStore)}, disableLifecycleMethods}).dive()
.dive()
.dive()
.dive()
```
### Expected behavior
`dive()` should only need to be called once.
### Your environment
macOS Mojave 10.14
Node: v10.12.0
NPM: 6.4.1
#### API
- [x] shallow
- [ ] mount
- [ ] render
#### Version
| library | version
| ------------------- | -------
| enzyme | 3.9.0
| react | 16.8.3
| react-dom | 16.8.5
| react-test-renderer | 16.8.3
| adapter (below) | 1.11.2
| redux-form | 7.4.2
#### Adapter
- [x] enzyme-adapter-react-16
- [ ] enzyme-adapter-react-16.3
- [ ] enzyme-adapter-react-16.2
- [ ] enzyme-adapter-react-16.1
- [ ] enzyme-adapter-react-15
- [ ] enzyme-adapter-react-15.4
- [ ] enzyme-adapter-react-14
- [ ] enzyme-adapter-react-13
- [ ] enzyme-adapter-react-helper
- [ ] others ( )
Contributor guide
Research direction
Reproduce the reported shallow-wrapper behavior with redux-form 7.4.2, Enzyme 3.9.0, React 16.8.3, and the React 16 adapter. Compare the current four-call example with the expected single dive call; done means the same methods are accessible after one dive.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100