Answer the question
In order to leave comments, you need to log in
How to test functions that are under lodash.debounce in Jest?
There is a component that has a method
constructor() {
super();
this.onChange = _.debounce(this.onChange, 300);
}
onChange() {
this.props.callback();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question