-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Upgrade to Jest 22.0.6 #16041
Upgrade to Jest 22.0.6 #16041
Conversation
expect(takeMountedSnapshot(component)) | ||
.toMatchSnapshot(); | ||
|
||
// Navigate to a different panel. | ||
component.find('[data-test-subj="contextMenuPanelTitleButton"]').simulate('click'); | ||
|
||
await tick(20); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the requestAnimationFrame
code in that component is the reason I had to do this.
@@ -1,22 +0,0 @@ | |||
// requestAnimationFrame isn't available in node so we need to polyfill it. | |||
// Borrowed from https://gist.github.com/paulirish/1579671. | |||
window.requestAnimationFrame = (() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now available in Jest
jenkins, test this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔨 LGTM!
No description provided.