UNPKG

fastify-cli

Version:

Run a fastify route with one command!

15 lines (11 loc) 372 B
import { test } from 'node:test' import * as assert from 'node:assert' import Fastify from 'fastify' import Support from '../../src/plugins/support' test('support works standalone', async (t) => { const fastify = Fastify() // eslint-disable-next-line no-void void fastify.register(Support) await fastify.ready() assert.equal(fastify.someSupport(), 'hugs') })