We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using .simulate on a shallow wrapper does not seem to return itself (but returns undefined), which disallows something like:
.simulate
undefined
component.simulate('click').simulate('mouseOut')
Where component is a shallow wrapper. When using mount instead of shallow, this works perfectly fine.
component
mount
shallow
ShallowWrapper.simulate should return itself per the documentation
ShallowWrapper.simulate
The text was updated successfully, but these errors were encountered:
1c2c58b
No branches or pull requests
Current behavior
Using
.simulate
on a shallow wrapper does not seem to return itself (but returnsundefined
), which disallows something like:Where
component
is a shallow wrapper. When usingmount
instead ofshallow
, this works perfectly fine.Expected behavior
ShallowWrapper.simulate
should return itself per the documentationYour environment
API
Version
Adapter
The text was updated successfully, but these errors were encountered: