- Notifications
You must be signed in to change notification settings - Fork 153
Closed
Labels
new ruleNew rule to be included in the pluginNew rule to be included in the pluginreleasedreleased on @beta
Milestone
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')
nickserv, Belco90, lourenci and LauraBeatris
Metadata
Metadata
Assignees
Labels
new ruleNew rule to be included in the pluginNew rule to be included in the pluginreleasedreleased on @beta