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

[reJest] waitForAnimationUpdates #6236

Merged
merged 5 commits into from
Jul 16, 2024
Merged

Conversation

piaskowyk
Copy link
Member

Summary

This pull request adds a new method to the runtime test API - waitForAnimationUpdates. The method accepts the expected snapshot of the animation and waits until it receives the exact amount of JS updates defined in the snapshot.

@piaskowyk piaskowyk requested a review from Latropos July 8, 2024 15:11
Copy link
Contributor

@Latropos Latropos left a comment

Choose a reason for hiding this comment

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

Looks good!
However I suppose that waitForAnimationUpdates(snapshot.length) allows more flexibility.

For example we sometimes want to check that concatenation of snapshots of Animation_A and Animation_B matches the snapshot of withSequence(Animation_A, Animation_B).

@piaskowyk piaskowyk requested a review from Latropos July 15, 2024 16:52
@piaskowyk piaskowyk added this pull request to the merge queue Jul 16, 2024
Merged via the queue into main with commit d321cb9 Jul 16, 2024
5 checks passed
@piaskowyk piaskowyk deleted the @piaskowyk/waitForAnimationUpdates branch July 16, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants