/** * @file Test environment variable getters and detection. Provides access to * test framework environment variables and utilities. */ /** * JEST_WORKER_ID environment variable. Set when running tests with Jest. * * @example * ;```typescript * import { getJestWorkerId } from '@socketsecurity/lib/env/test' * * const workerId = getJestWorkerId() * // e.g. '1' when running in Jest, or '' * ``` * * @returns The Jest worker ID string, or empty string if not set */ export declare function getJestWorkerId(): string; /** * VITEST environment variable. Set when running tests with Vitest. * * @example * ;```typescript * import { getVitest } from '@socketsecurity/lib/env/test' * * if (getVitest()) { * console.log('Running in Vitest') * } * ``` * * @returns `true` if running in Vitest, `false` otherwise */ export declare function getVitest(): boolean; /** * Check if code is running in a test environment. Checks NODE_ENV, VITEST, and * JEST_WORKER_ID. * * @example * ;```typescript * import { isTest } from '@socketsecurity/lib/env/test' * * if (isTest()) { * console.log('Running in test environment') * } * ``` * * @returns `true` if running in a test environment, `false` otherwise */ export declare function isTest(): boolean;