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

feat: Implement waitFor #2

Open
wants to merge 12 commits into
base: alpha
Choose a base branch
from
Open

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Jan 14, 2023

src/waitFor.tsx Outdated Show resolved Hide resolved
@eps1lon eps1lon changed the title feat: Rough sketch for API (includes untested implementation) feat(waitFor): Rough sketch for API (includes untested implementation) Jan 14, 2023
src/waitFor.tsx Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Feb 9, 2023

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 ☂️

@eps1lon eps1lon marked this pull request as draft February 9, 2023 11:21
@eps1lon eps1lon changed the title feat(waitFor): Rough sketch for API (includes untested implementation) feat: Implement waitFor Feb 9, 2023
@eps1lon eps1lon marked this pull request as ready for review February 9, 2023 12:13
@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 3, 2023

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:

Sandbox Source
React Configuration
react-testing-library-examples Configuration

@MatanBobi
Copy link
Member

@eps1lon Do we still want to move forwards with this effort?


export default function waitFor(
callback: () => void | Promise<void>,
options: WaitForOptions,

Choose a reason for hiding this comment

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

Suggested change
options: WaitForOptions,
options?: WaitForOptions,

Should options be optional? Otherwise, I get a TS error if 2nd arg is not provided.

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.

Support waitFor without a DOM
6 participants