Const
Asserts that an async iterable rejects with an error satisfying a shape.
await expectAsync(failingStream, 'to reject with error satisfying', { message: 'Connection failed',});await expectAsync( failingStream, 'to be rejected with error satisfying', { code: 'ECONNREFUSED', },); Copy
await expectAsync(failingStream, 'to reject with error satisfying', { message: 'Connection failed',});await expectAsync( failingStream, 'to be rejected with error satisfying', { code: 'ECONNREFUSED', },);
async-iterable-to-reject-with-error-satisfying-any
iterable
Asserts that an async iterable rejects with an error satisfying a shape.