Document async test best practices
- Discourage done/done.fail callbacks in favour of async/await or promise chains - Encourage expect(promise).rejects.toThrow() pattern for expected rejections. The previous example of a try/except violated the jest/no-try-expect ESLint rule!
Showing
Please register or sign in to comment