UNPKG

@socketsecurity/lib

Version:

Core utilities and infrastructure for Socket.dev security tools

16 lines (15 loc) 411 B
/** * JEST_WORKER_ID environment variable. * Set when running tests with Jest. */ export declare function getJestWorkerId(): string; /** * VITEST environment variable. * Set when running tests with Vitest. */ export declare function getVitest(): boolean; /** * Check if code is running in a test environment. * Checks NODE_ENV, VITEST, and JEST_WORKER_ID. */ export declare function isTest(): boolean;