-
-
Save chinhvo/61442e678285f29570a5409b6fd6d738 to your computer and use it in GitHub Desktop.
mock lodash debounce in jest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// somewhere on top | |
import _ from 'lodash'; | |
jest.unmock('lodash'); | |
// then | |
_.debounce = jest.fn((fn) => fn); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment