all
config.
🔧 This rule is automatically fixable by the --fix
CLI option.
// bad
vi.fn().mockReturnValue(Promise.reject(42))
vi.fn().mockImplementation(() => Promise.resolve(42))
// good
vi.fn().mockRejectedValue(42)
vi.fn().mockResolvedValue(42)