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

Function plugin

test/handler-context.test.js:10–13  ·  view source on GitHub ↗
(instance, opts, done)

Source from the content-addressed store, hash-verified

8
9 // simulate plugin that uses fastify-plugin
10 const plugin = function (instance, opts, done) {
11 instance.decorate('foo', 'foo')
12 done()
13 }
14 plugin[Symbol.for('skip-override')] = true
15
16 const instance = fastify()

Callers

nothing calls this directly

Calls 1

doneFunction · 0.50

Tested by

no test coverage detected