Home / File/ esm.test.mjs — fastify Source File

esm.test.mjs — fastify Source File

Architecture documentation for esm.test.mjs, a javascript file in the fastify codebase. 2 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  e254cffe_ca72_981b_a59b_ffdbe259c522["esm.test.mjs"]
  2bf9986b_b7fb_0c78_f075_72fbe6f4672b["fastify.js"]
  e254cffe_ca72_981b_a59b_ffdbe259c522 --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b
  8ae161fb_d58e_f981_3a18_aa17a67a6e31["node:test"]
  e254cffe_ca72_981b_a59b_ffdbe259c522 --> 8ae161fb_d58e_f981_3a18_aa17a67a6e31
  style e254cffe_ca72_981b_a59b_ffdbe259c522 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { test } from 'node:test'
import Fastify from '../../fastify.js'

test('esm support', async t => {
  const fastify = Fastify()

  fastify.register(import('./plugin.mjs'), { foo: 'bar' })
  fastify.register(import('./other.mjs'))

  await fastify.ready()

  t.assert.strictEqual(fastify.foo, 'bar')
})

Domain

Dependencies

Frequently Asked Questions

What does esm.test.mjs do?
esm.test.mjs is a source file in the fastify codebase, written in javascript. It belongs to the CoreKernel domain.
What does esm.test.mjs depend on?
esm.test.mjs imports 2 module(s): fastify.js, node:test.
Where is esm.test.mjs in the architecture?
esm.test.mjs is located at test/esm/esm.test.mjs (domain: CoreKernel, directory: test/esm).

Analyze Your Own Codebase

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

Try Supermodel Free