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

Function testPluginOptsAsync

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

Source from the content-addressed store, hash-verified

18 expect(opts).type.toBe<TestOptions>()
19}
20const testPluginOptsAsync: FastifyPluginAsync<TestOptions> = async function (instance, opts) {
21 expect(opts).type.toBe<TestOptions>()
22}
23
24const testPluginOptsWithType = (
25 instance: FastifyInstance,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected