.simulate() should provide a basic event object methods by default
Open
feature request
- Dominant language
- JavaScript
- Stars
- 19.8k
- Forks
- 2k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
If I do simulate('click') then it would be great if the call to the handler included a bare bones event object containing the normal preventDefault() methods instead of having to define those every time.
Contributor guide
Research direction
Start by tracing the simulate('click') entry point and how it invokes the handler. Done means simulated events provide a basic event object with the expected preventDefault methods by default, without requiring each caller to define them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100