UNPKG

fastify-cli

Version:

Run a fastify route with one command!

12 lines (9 loc) 238 B
import { test } from 'tap' import { build } from '../helper' test('default root route', async (t) => { const app = await build(t) const res = await app.inject({ url: '/' }) t.same(JSON.parse(res.payload), { root: true }) })