fastify
Version:
Fast and low overhead web framework, for Node.js
18 lines (14 loc) • 376 B
JavaScript
const { test } = require('node:test')
test('should import as default', t => {
t.plan(2)
const fastify = require('..')
t.assert.ok(fastify)
t.assert.strictEqual(typeof fastify, 'function')
})
test('should import as esm', t => {
t.plan(2)
const { fastify } = require('..')
t.assert.ok(fastify)
t.assert.strictEqual(typeof fastify, 'function')
})