mirror of https://github.com/buster-so/buster.git
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:
parent
2d46d2a65d
commit
bdb0f6e3d6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue