Skip to content

linter: false positive with no-standalone-expect #14888

@camc314

Description

@camc314

Hi, I'm still seeing this error, my code isn't much different to be honest:

  it('should do something', async () => {
    render(<ExampleComponent />);

    await waitFor(() => {
      expect(screen.getByText('Option 2')).toBeInTheDocument();
    });
  });

I thought it might be because of the async function, but removing that doesn't change anything.

Originally posted by @dan-proudfoot-bots in #11934

Metadata

Metadata

Assignees

Labels

A-linterArea - LinterC-bugCategory - Bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions