()
| 11 | import type { LoggerLike } from './timing'; |
| 12 | |
| 13 | function createTestLogger(): LoggerLike & { |
| 14 | debug: ReturnType<typeof vi.fn>; |
| 15 | info: ReturnType<typeof vi.fn>; |
| 16 | warn: ReturnType<typeof vi.fn>; |
| 17 | } { |
| 18 | return { |
| 19 | trace: vi.fn(), |
| 20 | debug: vi.fn(), |
| 21 | info: vi.fn(), |
| 22 | warn: vi.fn(), |
| 23 | error: vi.fn(), |
| 24 | }; |
| 25 | } |
| 26 | |
| 27 | describe('startupTrace', () => { |
| 28 | it('records startup phases without exposing sensitive fields or writing event logs by default', () => { |