Home / File/ imports.test.js — fastify Source File

imports.test.js — fastify Source File

Architecture documentation for imports.test.js, a javascript file in the fastify codebase.

Entity Profile

Source Code

'use strict'

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')
})

Frequently Asked Questions

What does imports.test.js do?
imports.test.js is a source file in the fastify codebase, written in javascript.
Where is imports.test.js in the architecture?
imports.test.js is located at test/imports.test.js (directory: test).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free