Skip to main content
Glama
catch-override-exception.test.js414 B
'use strict' const { test } = require('tap') const boot = require('..') test('catch exceptions in parent.override', (t) => { t.plan(2) const server = {} const app = boot(server, { autostart: false }) app.override = function () { throw Error('catch it') } app .use(function () {}) .start() app.ready(function (err) { t.type(err, Error) t.match(err, /catch it/) }) })

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