all
config.
🔧 This rule is automatically fixable by the --fix
CLI option.
// bad
it('passes', async () => { expect(await someValue()).toBe(true); });
// good
it('passes', async () => { await expect(someValue()).resolves.toBe(true); });
all
config.
🔧 This rule is automatically fixable by the --fix
CLI option.
// bad
it('passes', async () => { expect(await someValue()).toBe(true); });
// good
it('passes', async () => { await expect(someValue()).resolves.toBe(true); });