Home / File/ type-provider.test.js — fastify Source File

type-provider.test.js — fastify Source File

Architecture documentation for type-provider.test.js, a javascript file in the fastify codebase.

Entity Profile

Source Code

'use strict'

const { test } = require('node:test')
const Fastify = require('..')

test('Should export withTypeProvider function', (t, done) => {
  t.plan(1)
  try {
    Fastify().withTypeProvider()
    t.assert.ok('pass')
    done()
  } catch (e) {
    t.assert.fail(e)
  }
})

test('Should return same instance', (t, done) => {
  t.plan(1)
  const fastify = Fastify()
  t.assert.strictEqual(fastify, fastify.withTypeProvider())
  done()
})

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free