Skip to main content
Glama
base.test.js603 B
'use strict' const { test } = require('tap') const { fork } = require('child_process') const { join } = require('path') const { once } = require('events') const { register } = require('..') const files = [ 'close.js', 'beforeExit', 'gc-not-close.js', 'unregister.js' ] for (const file of files) { test(file, async ({ equal }) => { const child = fork(join(__dirname, 'fixtures', file), [], { execArgv: ['--expose-gc'] }) const [code] = await once(child, 'close') equal(code, 0) }) } test('undefined', async ({ throws }) => { throws(() => register(undefined)) })

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