UNPKG

fastify-cli

Version:

Run a fastify route with one command!

13 lines (10 loc) 298 B
import { test } from 'node:test' import * as assert from 'node:assert' import { build } from '../helper' test('default root route', async (t) => { const app = await build(t) const res = await app.inject({ url: '/' }) assert.deepStrictEqual(JSON.parse(res.payload), { root: true }) })