Skip to content

[await-async-utils] false positive promise all #227

@Mikeysauce

Description

@Mikeysauce

Hello,

Take the following example:

await Promise.all([ waitFor(() => expect(getByText('first-item')).toBeTruthy() ), waitFor(() => expect(getByText('second-item')).toBeTruthy() ), ]); 

This is flagged up as an error: "Promise returned from waitFor must be handled", which I believe is a false positive, as the Promise is indeed being handled by the Promise.all.

Thanks

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreleased

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions