jest/no-done-callback
Configuration
rslint.config.ts
Rule Details
Disallow using a done-style callback in Jest tests and hooks. Returning a Promise (or using async/await) is more reliable than relying on done, which can silently pass or time out when not invoked correctly.
For non-async functions the rule reports noDoneCallback and suggests wrapping the body in new Promise(done => ...). For async functions it reports useAwaitInsteadOfCallback.
Examples of incorrect code for this rule:
Examples of correct code for this rule: