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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better waitFor on scheduler #4485

Open
dubzzz opened this issue Nov 27, 2023 · 1 comment
Open

Better waitFor on scheduler #4485

dubzzz opened this issue Nov 27, 2023 · 1 comment

Comments

@dubzzz
Copy link
Owner

dubzzz commented Nov 27, 2023

馃挕 Idea

Currently the scheduler exposes one recommended but hard to use way to wait for something. At the moment, it requires the user to provide a Promise that will keep the scheduler running until it succeeds.

When writing tests, it can be handful to be able to waitFor a predicate to be fulfilled. A waitFor 脿-la react-testing might probably be a good target: https://testing-library.com/docs/dom-testing-library/api-async/#waitfor

@dubzzz
Copy link
Owner Author

dubzzz commented Nov 27, 2023

Might be cool to have it before the next major, see #3891

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant