Update apps/server/src/middleware/logger.test.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
dal 2025-07-03 13:58:36 -07:00 committed by GitHub
parent 2d46d2a65d
commit bdb0f6e3d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 13 deletions

View File

@ -10,19 +10,7 @@ describe('logger middleware', () => {
debug: typeof console.debug;
};
beforeEach(() => {
// Save original env and console
originalEnv = { ...process.env };
originalConsole = {
info: console.info,
warn: console.warn,
error: console.error,
debug: console.debug,
};
// Clear module cache to reload logger with new env
vi.resetModules();
});
import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';
afterEach(() => {
// Restore original env and console