1.0.1 • Published 4 years ago
@joyfulljs/jest-utils v1.0.1
jest-utils
some utils for jest test
install
npm install @joyfulljs/jest-utils --save-dev
usage
const jestUtils = require('@joyfulljs/jest-utils');
api
.mockEventBinding(): void
mock addEventListener/removeEventListener using jQuery so you can use jQuery to trigger event.
license
MIT