Skip to main content
Glama
errorCodes.test.mjs443 B
import { errorCodes } from '../../fastify.js' import { test } from 'node:test' test('errorCodes in ESM', async t => { // test a custom fastify error using errorCodes with ESM const customError = errorCodes.FST_ERR_VALIDATION('custom error message') t.assert.ok(typeof customError !== 'undefined') t.assert.ok(customError instanceof errorCodes.FST_ERR_VALIDATION) t.assert.strictEqual(customError.message, 'custom error message') })

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/krtw00/search-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server