UNPKG

fastify-cli

Version:

Run a fastify route with one command!

13 lines (9 loc) 240 B
import { test } from 'tap' import { build } from '../helper' test('example is loaded', async (t) => { const app = await build(t) const res = await app.inject({ url: '/example' }) t.equal(res.payload, 'this is an example') })