UNPKG

fastify-cli

Version:

Run a fastify route with one command!

14 lines (11 loc) 374 B
import { test } from 'node:test' import * as assert from 'node:assert' import Fastify from 'fastify' import Support from '../../src/plugins/support.js' 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') })