MCPcopy Create free account
hub / github.com/fastify/fastify / preClose

Function preClose

test/close.test.js:631–635  ·  view source on GitHub ↗
(done)

Source from the content-addressed store, hash-verified

629 fastify.addHook('preClose', preClose)
630
631 function preClose (done) {
632 t.assert.ok(typeof this === typeof fastify)
633 preCloseCalled = true
634 done()
635 }
636
637 fastify.listen({ port: 0 }, err => {
638 t.assert.ifError(err)

Callers

nothing calls this directly

Calls 1

doneFunction · 0.50

Tested by

no test coverage detected