Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
support :focus pseudo selector in mount #1965
Fixes #1709 by compare
Note that this only works with
const wrapper = mount(<input type="text" />) wrapper.simulate('focus') // will print false console.log(wrapper.is(":focus"))
I've tested this with jsdom@6 (in test suite), 13 and 12.