🔨expect

Provide a customized error message when an error occurs.

const wrapper = await wrap<string, number>(Promise.reject('error'))
wrapper.expect('error message') // panic!
// error message
// [Cause] error

Last updated