Question about 2 different methods exposed via fireEvent API in the react-testing-library.
fireEvent.dblClickfireEvent.doubleClick
What's the difference? And is there a recommendation to use one over the other?
Question about 2 different methods exposed via fireEvent API in the react-testing-library.
fireEvent.dblClickfireEvent.doubleClickWhat's the difference? And is there a recommendation to use one over the other?
Copyright © 2021 Jogjafile Inc.
                        
There's zero difference.
The Web platform natively has only "dblclick" event. Given that
"doubleClick"is such a commonly mistaken event name,testing-libraryjust makes it an alias of"dblClick".Source