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

Function testPluginOpts

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

Source from the content-addressed store, hash-verified

15 option2: false
16}
17const testPluginOpts: FastifyPluginCallback<TestOptions> = function (instance, opts, done) {
18 expect(opts).type.toBe<TestOptions>()
19}
20const testPluginOptsAsync: FastifyPluginAsync<TestOptions> = async function (instance, opts) {
21 expect(opts).type.toBe<TestOptions>()
22}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected