Closed
Description
Following the proposed in Kent at his post (https://kentcdodds.com/blog/common-mistakes-with-react-testing-library). I would like to suggest a new rule that detects multiple expect inside a wait-for:
❌ // wrong
await waitFor(() => {
expect(a).toEqual('a')
expect(b).toEqual('b')
})
✅ // correct
await waitFor(() => expect(a).toEqual('a'))
expect(b).toEqual('b')