@wgtechlabs/log-engine
Version:
A lightweight, security-first logging utility with automatic data redaction for Node.js applications - the first logging library with built-in PII protection.
33 lines • 954 B
TypeScript
/**
* Shared test utilities for redaction tests
* Common setup, mocks, and helper functions
*/
export declare const mockConsole: {
log: jest.Mock<any, any, any>;
warn: jest.Mock<any, any, any>;
error: jest.Mock<any, any, any>;
};
export declare const originalConsole: {
log: (message?: any, ...optionalParams: any[]) => void;
warn: (message?: any, ...optionalParams: any[]) => void;
error: (message?: any, ...optionalParams: any[]) => void;
};
/**
* Setup console mocks for testing
*/
export declare function setupConsoleMocks(): void;
/**
* Restore original console methods
*/
export declare function restoreConsole(): void;
/**
* Setup environment for testing
*/
export declare function setupTestEnvironment(): {
originalEnv: NodeJS.ProcessEnv;
};
/**
* Restore environment after testing
*/
export declare function restoreEnvironment(originalEnv: NodeJS.ProcessEnv): void;
//# sourceMappingURL=test-utils.d.ts.map