Skip to main content
Glama
defaultAction.buildCliConfig.test.ts757 B
import { describe, expect, it } from 'vitest'; import { buildCliConfig } from '../../../src/cli/actions/defaultAction.js'; import type { CliOptions } from '../../../src/cli/types.js'; describe('buildCliConfig', () => { describe('tokenCountTree option', () => { it('should handle boolean tokenCountTree', () => { const options: CliOptions = { tokenCountTree: true, }; const result = buildCliConfig(options); expect(result.output?.tokenCountTree).toBe(true); }); it('should handle numeric tokenCountTree', () => { const options: CliOptions = { tokenCountTree: 100, }; const result = buildCliConfig(options); expect(result.output?.tokenCountTree).toBe(100); }); }); });

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/yamadashy/repomix'

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