Skip to main content
Glama
vitest.config.integration.ts1.64 kB
import { defineConfig } from 'vitest/config'; import { config } from 'dotenv'; import { aliasEntries } from './aliases.ts'; // Load environment variables from .env file for integration tests config(); // Also load test-specific environment variables if it exists try { config({ path: '.env.test' }); } catch (error) { // .env.test is optional } export default defineConfig({ test: { environment: 'node', include: [ 'test/integration/**/*.test.ts', 'test/handlers/tool-configs/universal/integration-*.test.ts', 'test/real-api-validation.test.ts', ], globals: true, testTimeout: 60000, // Extended timeout for API calls hookTimeout: 10000, // Extended timeout for setup/cleanup // No setupFiles - avoid global mocks for integration tests pool: 'forks', poolOptions: { forks: { minForks: 1, maxForks: 1, // Single fork for API rate limiting singleFork: true, // Force sequential execution }, }, // Retry failed tests once for API flakiness retry: 1, // Environment variables env: { NODE_ENV: 'test', // ATTIO_API_KEY loaded from .env via dotenv }, coverage: { provider: 'v8', reporter: ['text', 'json'], reportsDirectory: './coverage-integration', include: ['src/**/*.{ts,js}'], exclude: [ 'src/**/*.d.ts', 'src/**/*.test.{ts,js}', 'src/**/*.spec.{ts,js}', 'src/types/**', 'src/**/types.ts', 'src/index.ts', ], }, silent: false, reporters: ['verbose'], }, resolve: { alias: aliasEntries, }, });

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/kesslerio/attio-mcp-server'

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