Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: mock lodash.debounce and recreate component in async test #5538

Merged
merged 1 commit into from
Mar 5, 2020

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Mar 5, 2020

Closes #5537

This PR replaces a timer based test with a mock for lodash.debounce, and reinstantiates the component within the async test function to replace the debounce function with the mocked version.

Testing / Reviewing

Ensure that tests are consistently passing CI (this may be difficult to test given the nature of the original issue and how it is not consistently reproducible)

@emyarod emyarod requested a review from a team as a code owner March 5, 2020 00:26
@ghost ghost requested review from abbeyhrt and dakahn March 5, 2020 00:26
@emyarod emyarod force-pushed the 5537-async-ci-tests branch from fa1d731 to 099bf2c Compare March 5, 2020 00:28
@netlify
Copy link

netlify bot commented Mar 5, 2020

Deploy preview for carbon-components-react ready!

Built with commit fa1d731

https://deploy-preview-5538--carbon-components-react.netlify.com

@netlify
Copy link

netlify bot commented Mar 5, 2020

Deploy preview for carbon-elements ready!

Built with commit fa1d731

https://deploy-preview-5538--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Mar 5, 2020

Deploy preview for carbon-components-react ready!

Built with commit 099bf2c

https://deploy-preview-5538--carbon-components-react.netlify.com

@netlify
Copy link

netlify bot commented Mar 5, 2020

Deploy preview for carbon-elements ready!

Built with commit 099bf2c

https://deploy-preview-5538--carbon-elements.netlify.com

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 - Thanks @emyarod!

@asudoh
Copy link
Contributor

asudoh commented Mar 5, 2020

@emyarod told me that this is ready for merge - Thanks @emyarod!

@asudoh asudoh merged commit f3049c1 into carbon-design-system:master Mar 5, 2020
@emyarod emyarod deleted the 5537-async-ci-tests branch March 5, 2020 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Async tests failing in CI
3 participants