You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test('awaitable after error handling',asynct=>{constfastify=Fastify()letfirst=falseletsecond=falseletthird=false// Note that this does not throw in case of error,// all errors are currently collected to ready() because it's// not really possible to do anything about them.awaitfastify.register(async(instance,opts,next)=>{first=truethrownewError('kaboom')})t.is(first,true)fastify.register(async(instance,opts,next)=>{second=true})awaitfastify.after()// TODO this is a bug, it should be falset.is(second,true)fastify.register(async(instance,opts,next)=>{third=true})awaitt.rejects(fastify.ready())t.is(third,false)})
From Fastify https://github.com/fastify/fastify/pull/2093/files:
cc @davidmarkclements
The text was updated successfully, but these errors were encountered: