UNPKG

fastify

Version:

Fast and low overhead web framework, for Node.js

14 lines (9 loc) 284 B
import t from 'tap' import Fastify from '../../fastify.js' t.test('esm support', async t => { const fastify = Fastify() fastify.register(import('./plugin.mjs'), { foo: 'bar' }) fastify.register(import('./other.mjs')) await fastify.ready() t.equal(fastify.foo, 'bar') })