Simulate events
A tiny helper library to simulate any kind of event in non-browser environments like jsdom. Events do work the same as you would exepect them to work in a browser.
Installation
# NPM npm i -D simulate-events # Yarn yarn add --dev simulate-events
Usage
; // We assume that jsdom has been correctly set upconst div = document;documentbody; div; ; // Logs: "hey"
LICENSE
MIT, see LICENSE.md