-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: Implement waitFor
#2
base: alpha
Are you sure you want to change the base?
Conversation
Welcome to Codecov 🎉Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment. Thanks for integrating Codecov - We've got you covered ☂️ |
waitFor
We also test Node.js 14 which doesn't support AbortController
Jest is not suited for this check since has no knowledge about the build matrix. Codecov should check this instead
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 253fe6c:
|
@eps1lon Do we still want to move forwards with this effort? |
|
||
export default function waitFor( | ||
callback: () => void | Promise<void>, | ||
options: WaitForOptions, |
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.
options: WaitForOptions, | |
options?: WaitForOptions, |
Should options
be optional? Otherwise, I get a TS error if 2nd arg is not provided.
Closes #3
API preview
Docs: testing-library/testing-library-docs#1204