Skip to main content
Glama
workspace.ts638 B
import { TestEnvironment, getTestEnvironment } from '@utils/workspace'; import { getTestMonorepoPath, validateTestWorkspacePath } from '@test/shared/workspace'; /** * Gets the workspace path for Vitest tests */ export function getWorkspacePath(): string { const env = getTestEnvironment(); if (env === TestEnvironment.VITEST) { return getTestMonorepoPath(); } return process.cwd(); } /** * Creates a test workspace for Vitest tests */ export function createTestWorkspace(): string { const workspacePath = getWorkspacePath(); return validateTestWorkspacePath(workspacePath, TestEnvironment.VITEST); }

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/patelnav/my-tools-mcp'

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