You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/09/15 21:46:44 UTC

[GitHub] [superset] michael-s-molina commented on pull request #16442: chore: Select component refactoring - TimeSeriesColumnControl - Iteration 5

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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org