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

Function testPluginCallback

test/types/plugin.tst.ts:47–47  ·  view source on GitHub ↗
(instance, opts, done)

Source from the content-addressed store, hash-verified

45expect(fastify().register(import('./dummy-plugin.mjs'), { foo: 1 })).type.toBeAssignableTo<FastifyInstance>()
46
47const testPluginCallback: FastifyPluginCallback = function (instance, opts, done) { }
48expect(fastify().register(testPluginCallback, {})).type.toBeAssignableTo<FastifyInstance>()
49
50const testPluginAsync: FastifyPluginAsync = async function (instance, opts) { }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected