michael-s-molina commented on pull request #16442:
URL: https://github.com/apache/superset/pull/16442#issuecomment-920405254


   To fix `TypeError: handleOnSearch.cancel is not a function` in your tests 
you have two options:
   - Don't mock `debounce` and just account for the async behavior.
   - Include the `cancel` function is your mock.
   ```
   jest.mock('lodash/debounce', () => (fn: Function) => ({
     ...fn,
     cancel: jest.fn(),
   }));
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to