Skip to main content
Glama
vitest.config.ts1.49 kB
import { defineConfig } from 'vitest/config'; import { readFileSync } from 'fs'; export default defineConfig({ test: { environment: 'node', globals: true, testTimeout: 2000, // 2 seconds per test hookTimeout: 1000, // 1 second for hooks teardownTimeout: 1000, // 1 second for teardown dangerouslyIgnoreUnhandledErrors: true, // Ignore unhandled errors from test mocks exclude: [ '**/node_modules/**', '**/dist/**', '**/.{idea,git,cache,output,temp}/**', '**/.context/**', // Exclude .context directory with unrelated code ], coverage: { provider: 'v8', reporter: ['text', 'json', 'html'], include: ['src/**/*.ts'], exclude: [ 'src/**/*.test.ts', 'src/**/*.spec.ts', 'src/index.ts', // Main entry point with process handlers - hard to test 'src/types.ts', // Type definitions only 'src/**/*.d.ts', // Type definition files ], thresholds: { statements: 90, branches: 90, functions: 90, lines: 90, }, }, }, plugins: [ { name: 'markdown-loader', transform(code, id) { if (id.endsWith('.md')) { // Read markdown file and export as string (same as rollup-plugin-string) const content = readFileSync(id, 'utf-8'); return { code: `export default ${JSON.stringify(content)};`, map: null, }; } }, }, ], });

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/bgauryy/octocode-mcp'

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