You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
290 B

4 years ago
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.strictEqual(fastify.foo, 'bar')
})