UNPKG

fastify-cli

Version:

Run a fastify route with one command!

14 lines (10 loc) 289 B
import { test } from 'node:test' import * as assert from 'node:assert' import { build } from '../helper' test('example is loaded', async (t) => { const app = await build(t) const res = await app.inject({ url: '/example' }) assert.equal(res.payload, 'this is an example') })