Skip to main content
Glama
core.js444 B
import { describe, test, expect } from 'scripterio' import { getAllFileNames } from '../build/index.js' describe('Unit tests for:', () => { describe('getAllFileNames()', () => { test('Should return filenames from the path', async () => { const fileNames = await getAllFileNames( new URL('../__tests__/data', import.meta.url), '.json' ) expect(fileNames[0]).toBeEqual('sample_users.json') }) }) })

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/VadimNastoyashchy/json-mcp'

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