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

using assertions in waitFor blocks #7

Open
joprice opened this issue Oct 12, 2023 · 0 comments
Open

using assertions in waitFor blocks #7

joprice opened this issue Oct 12, 2023 · 0 comments

Comments

@joprice
Copy link

joprice commented Oct 12, 2023

I'm trying to figure out how to write something similar to the below waitFor call, where the passed closure has an assertion, which is expected to fail inline. As far as I can tell, the affirm functionality is internal. Could it be exposed to execute these callbacks outside the context of a test body, or is there another approach to accomplish this?

await waitFor(() => {
    expect(queryByText("Loading ...")).not.toBeInTheDocument();
  });
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

No branches or pull requests

1 participant