/** * Global test environment configuration. * * This module provides isolated temp directories for tests and is initialized * by vitest.setup.ts before any tests run. * * Usage: * import { testEnv } from "../test-utils/test-env.js"; * const configPath = testEnv.globalConfigPath; */ import { describe, it, test, expect, beforeEach, afterEach, beforeAll, afterAll, vi } from "vitest"; export interface TestEnv { /** Base temp directory for all test isolation */ tempBase: string; /** XDG_CONFIG_HOME equivalent - use for global config files */ configHome: string; /** DEX_HOME equivalent - the dex config directory */ dexHome: string; /** Path to the global dex.toml config file */ globalConfigPath: string; } /** * Initialize the test environment. Called by vitest.setup.ts. * Creates temp directories and sets environment variables. */ export declare function initTestEnv(): TestEnv; /** * Clean up the test environment. Called by vitest.setup.ts after all tests. */ export declare function cleanupTestEnv(): void; /** * Convenience export for direct access to the test environment. * Use this when you need access to the global test paths (tempBase, configHome, etc). */ export declare const testEnv: TestEnv; export { describe, it, test, expect, beforeEach, afterEach, beforeAll, afterAll, vi, }; //# sourceMappingURL=test-env.d.ts.map